From: Michael Meissner Date: Thu, 21 Sep 1995 21:57:32 +0000 (+0000) Subject: Locate __bss_start at the real start of bss. X-Git-Tag: gdb-4_18~10798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7453a7533fda60401dac9054980b2075f4af8ee4;p=external%2Fbinutils.git Locate __bss_start at the real start of bss. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 123eb6d..1959d5a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,14 @@ +Thu Sep 21 17:55:24 1995 Michael Meissner + + * scripttempl/elfppc.sc: Correctly locate __bss_start at the + beginning of the .bss area, not at the end of data. Add + __sbss_{start,end} symbols. + +Wed Sep 20 12:29:36 1995 Ian Lance Taylor + + * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name). + (CXX_FOR_TARGET, install): Likewise. + Mon Sep 18 14:53:22 1995 Ian Lance Taylor Based on patches by Alan Modra : 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)