aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-06-10 00:39:56 +0000
committerAlan Modra <amodra@gmail.com>2005-06-10 00:39:56 +0000
commit9d12f64cdc6540b75938097d7f4ab460bb346528 (patch)
tree6ea5d82f4c4cef1c8bd556514ab7a1810f05cd74 /ld/scripttempl
parentbce2b7d0724340d3cb670cb77280734f8663a13f (diff)
downloadgdb-9d12f64cdc6540b75938097d7f4ab460bb346528.zip
gdb-9d12f64cdc6540b75938097d7f4ab460bb346528.tar.gz
gdb-9d12f64cdc6540b75938097d7f4ab460bb346528.tar.bz2
* scripttempt/elf.sc (.bss): Align tail in a way that allows
empty section pruning.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf.sc2
1 files changed, 1 insertions, 1 deletions
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});}