aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
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 /ld/scripttempl
parent3bdb50600c3d20e355637b48fc317e8ad70ba93d (diff)
downloadgdb-09a1b0e9437f4e6c868b47322a84193a5ae3a391.zip
gdb-09a1b0e9437f4e6c868b47322a84193a5ae3a391.tar.gz
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.
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 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