diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-09-21 21:57:32 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-09-21 21:57:32 +0000 |
commit | 7453a7533fda60401dac9054980b2075f4af8ee4 (patch) | |
tree | 4f05b5934bd31220c6290d2d0c4207e8c6276b30 /ld/scripttempl | |
parent | 52e1cf9d019c225dfa03720fa14d841f0b84de1a (diff) | |
download | gdb-7453a7533fda60401dac9054980b2075f4af8ee4.zip gdb-7453a7533fda60401dac9054980b2075f4af8ee4.tar.gz gdb-7453a7533fda60401dac9054980b2075f4af8ee4.tar.bz2 |
Locate __bss_start at the real start of bss.
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) |