diff options
author | Alan Modra <amodra@gmail.com> | 2005-06-10 00:39:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-06-10 00:39:56 +0000 |
commit | 9d12f64cdc6540b75938097d7f4ab460bb346528 (patch) | |
tree | 6ea5d82f4c4cef1c8bd556514ab7a1810f05cd74 | |
parent | bce2b7d0724340d3cb670cb77280734f8663a13f (diff) | |
download | gdb-9d12f64cdc6540b75938097d7f4ab460bb346528.zip gdb-9d12f64cdc6540b75938097d7f4ab460bb346528.tar.gz gdb-9d12f64cdc6540b75938097d7f4ab460bb346528.tar.bz2 |
* scripttempt/elf.sc (.bss): Align tail in a way that allows
empty section pruning.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/scripttempl/elf.sc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 7c694de..977e4c9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index e7702a3..1c22141 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -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});} |