From: Nick Clifton Date: Thu, 11 Oct 2001 17:28:43 +0000 (+0000) Subject: Fix arm aout placement of .bss section X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5af8a2fbdcd74780ce9e9e4b1f02921cde1245c2;p=binutils-gdb.git Fix arm aout placement of .bss section --- diff --git a/ld/ChangeLog b/ld/ChangeLog index d0f1a421cb1..218ed098deb 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2001-10-11 Aleksey Romanov + + * scripttempl/armaout.sc: Place .bss section after end of aligned + data section to match behaviour of aout code in constructrion of + header. + 2001-10-11 Danny Smith * pe-dll.c (autofilter_entry_type autofilter_liblist: Add diff --git a/ld/scripttempl/armaout.sc b/ld/scripttempl/armaout.sc index e9276a877e1..9bae887ddb4 100644 --- a/ld/scripttempl/armaout.sc +++ b/ld/scripttempl/armaout.sc @@ -20,10 +20,10 @@ SECTIONS ${RELOCATING+__sdata_ = .;} *(.data) ${CONSTRUCTING+CONSTRUCTORS} - ${RELOCATING+_edata = .;} - ${RELOCATING+__edata = .;} + ${RELOCATING+_edata = ${DATA_ALIGNMENT};} + ${RELOCATING+__edata = ${DATA_ALIGNMENT};} } - .bss ${RELOCATING+ SIZEOF(.data) + ADDR (.data)} : + .bss ${RELOCATING+${DATA_ALIGNMENT}} : { ${RELOCATING+ __bss_start = .}; *(.bss)