Applied NewOS change 1972: "Fix the build with gcc 3.3.3. The bootloader
was broken because of some new behavior that puts initialized varaibles in .bss anyway (if you initialize with zero). The bootloader was relying on not having a .bss. Fixed in the linker script.". git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6968 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a387bccab2
commit
eb9335a34b
@ -13,20 +13,16 @@ SECTIONS
|
||||
.ctors : { *(.ctors) }
|
||||
__ctor_end = .;
|
||||
|
||||
.rodata : { *(.rodata) }
|
||||
.rodata : { *(.rodata .rodata.*) }
|
||||
|
||||
/* writable data */
|
||||
. = ALIGN(0x1000);
|
||||
__data_start = .;
|
||||
.data : { *(.data .gnu.linkonce.d.*) }
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
__bss_start = .;
|
||||
.bss : { *(.bss) }
|
||||
.data : { *(.data .gnu.linkonce.d.* .bss) }
|
||||
|
||||
. = ALIGN(0x1000);
|
||||
_end = . ;
|
||||
|
||||
/* Strip unnecessary stuff */
|
||||
/DISCARD/ : { *(.comment .note .eh_frame .dtors) }
|
||||
/DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user