Correct .dynbss in script
authorAlan Modra <amodra@gmail.com>
Sun, 25 Dec 2016 23:10:58 +0000 (09:40 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Dec 2016 03:12:20 +0000 (13:42 +1030)
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.

ld/ChangeLog
ld/scripttempl/elf.sc

index a6f017870c07837e4c1a8677a1d241fb657951de..a9f157ead297d0c3c939a7cb4f2a9a67abbc5630 100644 (file)
@@ -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.
index f0c64390729ec19ed454ecc9a156057459b20467..cf2b10acf757940264f931316e03ec572b3462a3 100644 (file)
@@ -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
This page took 0.02774 seconds and 4 git commands to generate.