diff options
Diffstat (limited to 'ld/testsuite/ld-mips-elf/comm-data.exp')
-rw-r--r-- | ld/testsuite/ld-mips-elf/comm-data.exp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ld/testsuite/ld-mips-elf/comm-data.exp b/ld/testsuite/ld-mips-elf/comm-data.exp index 28ca290..2b6fa83 100644 --- a/ld/testsuite/ld-mips-elf/comm-data.exp +++ b/ld/testsuite/ld-mips-elf/comm-data.exp @@ -24,9 +24,10 @@ # Written by Maciej W. Rozycki <macro@codesourcery.com> # -# Exclude non-Linux targets; feel free to include your favorite one -# if you like. -if ![istarget mips*-*-linux*] { +# This test is for MIPS shared-library targets. +if { ![istarget mips*-*-*] + || ![is_elf_format] + || ![check_shared_lib_support] } { return } @@ -64,7 +65,7 @@ proc mips_comm_data_test { abi flag emul reloc } { run_ld_link_tests [list \ [list \ "$testname" \ - "$LDFLAGS $ZFLAG -Ltmpdir -lmips-$abi-$reloc-comm-data" "" \ + "$LDFLAGS $ZFLAG -T ../ld-elf/comm-data2.ld -Ltmpdir -lmips-$abi-$reloc-comm-data" "" \ "$AFLAGS -call_nonpic" \ { ../ld-elf/comm-data2.s } \ { \ |