From: Maciej W. Rozycki Date: Mon, 23 Jan 2017 11:21:19 +0000 (+0000) Subject: PR ld/20828: Work around RISC-V failures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e5f45bb15d287ed763b7b638254424149040f7a;p=binutils-gdb.git PR ld/20828: Work around RISC-V failures 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'. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index edefd03a381..a9d14783a71 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2017-01-23 Maciej W. Rozycki + + PR ld/20828 + * testsuite/ld-elf/pr20828.ld: Add `.plt'. + 2017-01-23 Maciej W. Rozycki PR ld/20828 diff --git a/ld/testsuite/ld-elf/pr20828.ld b/ld/testsuite/ld-elf/pr20828.ld index 11aea82f875..0166f5236d2 100644 --- a/ld/testsuite/ld-elf/pr20828.ld +++ b/ld/testsuite/ld-elf/pr20828.ld @@ -13,6 +13,7 @@ SECTIONS .shstrtab : { *(.shstrtab) } .symtab : { *(.symtab) } .strtab : { *(.strtab) } + .plt : { *(.plt) } .got.plt : { *(.got.plt) } .got : { *(.got) } /DISCARD/ : { *(*) }