diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-08-24 22:37:18 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-08-24 22:37:18 +0000 |
commit | fe9cd7ab17990a589ed8e14c4a6157d218ae9ae5 (patch) | |
tree | 968e9fc63d7924dace758dfe1af914aca29a4078 /ld/testsuite/ld-mips-elf/comm-data.exp | |
parent | aea6ea421db3f7327c4943cbe13abceb42b84be6 (diff) | |
download | binutils-fe9cd7ab17990a589ed8e14c4a6157d218ae9ae5.zip binutils-fe9cd7ab17990a589ed8e14c4a6157d218ae9ae5.tar.gz binutils-fe9cd7ab17990a589ed8e14c4a6157d218ae9ae5.tar.bz2 |
* ld-elf/comm-data.exp: Use check_shared_lib_support rather than
explicit patterns for test target qualification. Define extra
tool flags for *-*-hpux* and tic6x-*-* targets. Link with a
linker script. Use alternative patterns for targets that do not
eliminate copy relocs, currently mn10300-*-* and vax-*-*.
* ld-elf/comm-data2.s: Handle HPUX's `.comm' syntax.
* ld-elf/comm-data2.ld: New test linker script.
* ld-elf/comm-data2.xd: Match section's VMA too. Ignore ASCII
data dump.
* ld-elf/comm-data2r.rd: New test pattern.
* ld-elf/comm-data2r.sd: New test pattern.
* ld-elf/comm-data2r.xd: New test pattern.
* ld-mips-elf/comm-data.exp: Use check_shared_lib_support rather
than an explicit pattern for test target qualification. Link
with a linker script.
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 } \ { \ |