* Re: LoongArch: ld: Fix bug not generate plt when link a dso
@ 2022-08-25 4:32 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-08-25 4:32 UTC (permalink / raw)
To: binutils
Fixes loongarch32-elf +FAIL: medium jirl plt
* testsuite/ld-loongarch-elf/cmodel.exp: Don't run test when
no shared library support.
diff --git a/ld/testsuite/ld-loongarch-elf/cmodel.exp b/ld/testsuite/ld-loongarch-elf/cmodel.exp
index 7ef972a44e5..bb28d336fd1 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" \
+ ] \
+ ]
+}
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-25 4:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 4:32 LoongArch: ld: Fix bug not generate plt when link a dso Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).