mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Fix data segement. You may now use stuff like int foo = 1; in global context (as opposed to both int foo = 0; which is bss and const int foo = 1; which is rodata) without having the sky come
crashing down
This commit is contained in:
parent
715d74c5be
commit
1b2c893632
4 changed files with 34 additions and 9 deletions
|
@ -13,15 +13,26 @@ SECTIONS
|
|||
*(.eh_frame)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
*(.version_information)
|
||||
} >osimage
|
||||
.rodata : {
|
||||
*(.rodata)
|
||||
*(.rodata*)
|
||||
*(.version_information)
|
||||
} >osimage
|
||||
.data : { *(.data) } >ram
|
||||
__bss_start__ = .;
|
||||
.bss : { *(.bss) } >ram
|
||||
__end_of_text__ = .;
|
||||
|
||||
.data : {
|
||||
__data_start__ = .;
|
||||
__data_src_start__ = __end_of_text__;
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
__data_end__ = .;
|
||||
} >ram AT>osimage
|
||||
|
||||
.bss : {
|
||||
__bss_start__ = .;
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
} >ram
|
||||
. = ALIGN(32 / 8);
|
||||
__bss_end__ = .;
|
||||
|
||||
.commonarea (NOLOAD) : {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue