aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-25 09:23:59 +0930
committerAlan Modra <amodra@gmail.com>2022-08-25 09:41:43 +0930
commitc6e42384f1a1fe678ae947afd3558b5188c3e10e (patch)
tree3f40d6830a1c282edb16cc8e0fcf5687eb1d41da /ld
parent66a43cf1a7893099fb47ff68e8d4f9c61c279c7d (diff)
downloadgdb-c6e42384f1a1fe678ae947afd3558b5188c3e10e.zip
gdb-c6e42384f1a1fe678ae947afd3558b5188c3e10e.tar.gz
gdb-c6e42384f1a1fe678ae947afd3558b5188c3e10e.tar.bz2
Re: LoongArch: ld: Fix bug not generate plt when link a dso
Fixes loongarch32-elf +FAIL: medium jirl plt * testsuite/ld-loongarch-elf/cmodel.exp: Don't run test when no shared library support.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-loongarch-elf/cmodel.exp27
1 files changed, 15 insertions, 12 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/cmodel.exp b/ld/testsuite/ld-loongarch-elf/cmodel.exp
index 7ef972a..bb28d33 100644
--- a/ld/testsuite/ld-loongarch-elf/cmodel.exp
+++ b/ld/testsuite/ld-loongarch-elf/cmodel.exp
@@ -23,15 +23,18 @@ if ![istarget loongarch*-*-*] {
return
}
-run_ld_link_tests [list \
- [list \
- "medium jirl plt" \
- "-shared" "" \
- "" \
- {libjirl.s} \
- [list \
- [list objdump -d cmodel-libjirl.dd] \
- ] \
- "libjirl.so" \
- ] \
- ]
+if [check_shared_lib_support] {
+ run_ld_link_tests \
+ [list \
+ [list \
+ "medium jirl plt" \
+ "-shared" "" \
+ "" \
+ {libjirl.s} \
+ [list \
+ [list objdump -d cmodel-libjirl.dd] \
+ ] \
+ "libjirl.so" \
+ ] \
+ ]
+}