This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Correct .dynbss in script
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 26 Dec 2016 05:46:00 -0000
- Subject: [binutils-gdb] Correct .dynbss in script
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=09a1b0e9437f4e6c868b47322a84193a5ae3a391
commit 09a1b0e9437f4e6c868b47322a84193a5ae3a391
Author: Alan Modra <amodra@gmail.com>
Date: Mon Dec 26 09:40:58 2016 +1030
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.
Diff:
---
ld/ChangeLog | 4 ++++
ld/scripttempl/elf.sc | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
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