Fixes loongarch32-elf +FAIL: medium jirl plt
* testsuite/ld-loongarch-elf/cmodel.exp: Don't run test when
no shared library support.
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" \
+ ] \
+ ]
+}