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:
henryk@ploetzli.ch 2009-09-08 15:40:22 +00:00
commit 1b2c893632
4 changed files with 34 additions and 9 deletions

View file

@ -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) : {