]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR ld/20828: Work around RISC-V failures
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 23 Jan 2017 11:21:19 +0000 (11:21 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Mon, 23 Jan 2017 11:27:06 +0000 (11:27 +0000)
Complement commit 81ff47b3a546 ("PR ld/20828: Fix linker script symbols
wrongly forced local with section GC") and add `.plt' to the list of
output sections created, fixing:

FAIL: PR ld/20828 dynamic symbols with section GC (auxiliary shared library)
FAIL: PR ld/20828 dynamic symbols with section GC (plain)
FAIL: PR ld/20828 dynamic symbols with section GC (version script)

failures with `riscv32-elf', `riscv32-linux', `riscv64-elf' and
`riscv64-linux' targets caused by LD crashing in the absence of such a
section.

ld/
PR ld/20828
* testsuite/ld-elf/pr20828.ld: Add `.plt'.

ld/ChangeLog
ld/testsuite/ld-elf/pr20828.ld

index edefd03a381f3b2dff693852d512d88c4ece230a..a9d14783a7138e753f9e3ae13b6d969847838ef8 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
+
+       PR ld/20828
+       * testsuite/ld-elf/pr20828.ld: Add `.plt'.
+
 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
 
        PR ld/20828
index 11aea82f8753d2f46828abfd7f49e184887b600e..0166f5236d24dc4d1a856324ecde6b453ec5838f 100644 (file)
@@ -13,6 +13,7 @@ SECTIONS
   .shstrtab : { *(.shstrtab) }
   .symtab : { *(.symtab) }
   .strtab : { *(.strtab) }
+  .plt : { *(.plt) }
   .got.plt : { *(.got.plt) }
   .got : { *(.got) }
   /DISCARD/ : { *(*) }