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:
parent
66a43cf1a7
commit
c6e42384f1
@ -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" \
|
||||
] \
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user