From 5af8a2fbdcd74780ce9e9e4b1f02921cde1245c2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 11 Oct 2001 17:28:43 +0000 Subject: [PATCH] Fix arm aout placement of .bss section --- ld/ChangeLog | 6 ++++++ ld/scripttempl/armaout.sc | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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) -- 2.30.2