aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-01-23 11:21:19 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2017-01-23 11:27:06 +0000
commit1e5f45bb15d287ed763b7b638254424149040f7a (patch)
tree4afcd2adb08c576a2f72f537c2238c7add6041a1 /ld
parentfda46c417ff8324960ca305141df5fc6c2f580af (diff)
downloadgdb-1e5f45bb15d287ed763b7b638254424149040f7a.zip
gdb-1e5f45bb15d287ed763b7b638254424149040f7a.tar.gz
gdb-1e5f45bb15d287ed763b7b638254424149040f7a.tar.bz2
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'.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/pr20828.ld1
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index edefd03..a9d1478 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,6 +1,11 @@
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
* testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
`fdata' and `edata' respectively.
* testsuite/ld-elf/pr20828.ver: Adjust accordingly.
diff --git a/ld/testsuite/ld-elf/pr20828.ld b/ld/testsuite/ld-elf/pr20828.ld
index 11aea82..0166f52 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/ : { *(*) }