* scripttempt/elf.sc (.bss): Align tail in a way that allows
authorAlan Modra <amodra@gmail.com>
Fri, 10 Jun 2005 00:39:56 +0000 (00:39 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Jun 2005 00:39:56 +0000 (00:39 +0000)
empty section pruning.

ld/ChangeLog
ld/scripttempl/elf.sc

index 7c694ded02a81b49684f074425802af831aff751..977e4c933797d749c7bdc12168f1f5b92211f42d 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * scripttempt/elf.sc (.bss): Align tail in a way that allows
+       empty section pruning.
+
 2005-06-09  Steve Ellcey  <sje@cup.hp.com>
 
        * configure.in (AM_BINUTILS_WARNINGS): Add.
index e7702a31e5dd8fc2f62e7f228d9acf944fd96bdf..1c22141e7787de07de11743003e114cdda4e4209 100644 (file)
@@ -398,7 +398,7 @@ cat <<EOF
    /* Align here to ensure that the .bss section occupies space up to
       _end.  Align after .bss to ensure correct alignment even if the
       .bss section disappears because there are no input sections.  */
-   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
+   ${RELOCATING+. = ALIGN(. != 0 ? ${ALIGNMENT} : 1);}
   }
   ${OTHER_BSS_SECTIONS}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}