diff options
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/elfppc.sc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ld/scripttempl/elfppc.sc b/ld/scripttempl/elfppc.sc index 5a2d00d..1370465 100644 --- a/ld/scripttempl/elfppc.sc +++ b/ld/scripttempl/elfppc.sc @@ -136,12 +136,18 @@ SECTIONS .sdata ${RELOCATING-0} : { *(.sdata) } ${RELOCATING+_edata = .;} ${RELOCATING+PROVIDE (edata = .);} - ${RELOCATING+__bss_start = .;} - .sbss ${RELOCATING-0} : { *(.sbss) *(.scommon) } + .sbss ${RELOCATING-0} : + { + ${RELOCATING+__sbss_start = .;} + *(.sbss) + *(.scommon) + ${RELOCATING+__sbss_end = .;} + } ${RELOCATING+_GOT_END_ = .;} - ${RELOCATING+${OTHER_BSS_SYMBOLS}} .bss ${RELOCATING-0} : { + ${RELOCATING+${OTHER_BSS_SYMBOLS}} + ${RELOCATING+__bss_start = .;} *(.dynbss) *(.bss) *(COMMON) |