OSDN Git Service

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

ld/ChangeLog
ld/scripttempl/elf.sc

index 7c694de..977e4c9 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 e7702a3..1c22141 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});}