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.
This commit is contained in:
Alan Modra 2022-08-25 09:23:59 +09:30
parent 66a43cf1a7
commit c6e42384f1

View File

@ -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" \
] \
]
}