Fix arm aout placement of .bss section
authorNick Clifton <nickc@redhat.com>
Thu, 11 Oct 2001 17:28:43 +0000 (17:28 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 11 Oct 2001 17:28:43 +0000 (17:28 +0000)
ld/ChangeLog
ld/scripttempl/armaout.sc

index d0f1a42..218ed09 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
+
+       * 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  <danny_r_smith_2001@yahoo.co.nz>
 
        * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
index e9276a8..9bae887 100644 (file)
@@ -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)