diff options
Diffstat (limited to 'ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp b/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp index 8dc04fe..64e644d 100644 --- a/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp +++ b/ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp @@ -59,6 +59,30 @@ if [istarget "loongarch64-*-*"] { ] } + # loongarch*-elf target do not support -shared option + if [check_shared_lib_support] { + run_ld_link_tests \ + [list \ + [list \ + "data plt" \ + "-shared" "" \ + "" \ + {data-plt.s} \ + {} \ + "data-plt.so" \ + ] \ + ] + + if [file exist "tmpdir/data-plt.so"] { + set objdump_output [run_host_cmd "objdump" "-d tmpdir/data-plt.so"] + if { [ regexp "<a@plt>" $objdump_output] } { + fail "data plt" + } { + pass "data plt" + } + } + } + run_ld_link_tests \ [list \ [list \ |