aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-01-29 10:57:48 +1030
committerAlan Modra <amodra@gmail.com>2021-01-29 11:07:18 +1030
commitc4566785ac265b3e4b3cde0e43733975c58d9175 (patch)
tree97ee2882d2e0d4f0f8d6406f2169c59cbbc7d1fe /ld
parent986dbd541ae550352fd1cf1d53e7c89b93bcd8d2 (diff)
downloadgdb-c4566785ac265b3e4b3cde0e43733975c58d9175.zip
gdb-c4566785ac265b3e4b3cde0e43733975c58d9175.tar.gz
gdb-c4566785ac265b3e4b3cde0e43733975c58d9175.tar.bz2
PR27271, c6x-uclinux-ld segfaults linking ld-uClibc-1.0.37.so
bfd/ PR 27271 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault on symbols defined in absolute or other special sections. ld/ * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-tic6x/tic6x.exp5
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6d47b7b..a2f2f88 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-29 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
+
2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
PR ld/27259
diff --git a/ld/testsuite/ld-tic6x/tic6x.exp b/ld/testsuite/ld-tic6x/tic6x.exp
index e11699b..0a913da 100644
--- a/ld/testsuite/ld-tic6x/tic6x.exp
+++ b/ld/testsuite/ld-tic6x/tic6x.exp
@@ -130,6 +130,11 @@ set shlibtests {
{objdump -sj.got static-app-1rb.sd}
{objdump -R static-app-1rb.od}}
"static-app-1rb"}
+
+ {"C6X shared library with --export-dynamic"
+ "-shared --export-dynamic -Tdsbt.ld --dsbt-size=3 --hash-style=sysv" ""
+ "-mdsbt -mpic -mpid=near" {shlib-1.s shlib-2.s}
+ {} "pr27271.so"}
}
run_ld_link_tests $shlibtests