aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-12-26 09:40:58 +1030
committerAlan Modra <amodra@gmail.com>2016-12-26 13:42:20 +1030
commit09a1b0e9437f4e6c868b47322a84193a5ae3a391 (patch)
treeb46b27dbedd83281f100ed45a3f5b8cb77d7e744
parent3bdb50600c3d20e355637b48fc317e8ad70ba93d (diff)
downloadfsf-binutils-gdb-09a1b0e9437f4e6c868b47322a84193a5ae3a391.zip
fsf-binutils-gdb-09a1b0e9437f4e6c868b47322a84193a5ae3a391.tar.gz
fsf-binutils-gdb-09a1b0e9437f4e6c868b47322a84193a5ae3a391.tar.bz2
Correct .dynbss in script
The only target that renames .bss is tic6x, turning .bss into .far, and .sbss into .bss. .dynbss is not renamed to .dynfar by BFD. * scripttempl/elf.sc: Don't use $BSS_NAME in .dynbss.
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/scripttempl/elf.sc2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index a6f0178..a9f157e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2016-12-26 Alan Modra <amodra@gmail.com>
+
+ * scripttempl/elf.sc: Don't use $BSS_NAME in .dynbss.
+
2016-12-23 Tristan Gingold <gingold@adacore.com>
* configure: Regenerate.
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index f0c6439..cf2b10a 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -620,7 +620,7 @@ cat <<EOF
${BSS_PLT+${PLT}}
.${BSS_NAME} ${RELOCATING-0} :
{
- *(.dyn${BSS_NAME})
+ ${RELOCATING+*(.dynbss)}
*(.${BSS_NAME}${RELOCATING+ .${BSS_NAME}.* .gnu.linkonce.b.*})
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to