aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/mips-elf.exp
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-07-10 01:28:46 +0100
committerMaciej W. Rozycki <macro@mips.com>2018-07-10 01:28:46 +0100
commit7153abac62fd8d7f20a307c85e3aa77a020ffc42 (patch)
treed7a9a4b05e6be178146523bf72bc80438a8451e4 /ld/testsuite/ld-mips-elf/mips-elf.exp
parentaa4bd7e6aef39f3d9264901fbb31473bd639bdd5 (diff)
downloadgdb-7153abac62fd8d7f20a307c85e3aa77a020ffc42.zip
gdb-7153abac62fd8d7f20a307c85e3aa77a020ffc42.tar.gz
gdb-7153abac62fd8d7f20a307c85e3aa77a020ffc42.tar.bz2
MIPS/LD/testsuite: Make Linux dumps for n64 GOT relocation tests the default
The current default dumps for n64 GOT relocation tests only work for IRIX targets really, while the Linux dumps are suitable for non-Linux targets as well. Make the Linux dumps the default then and handle the IRIX ones as a special case. Define an `irix' variable as a shorthand for `[istarget *-*-irix*]' and use it for these n64 GOT relocation tests as well as export class call relocation tests. ld/ * testsuite/ld-mips-elf/elf-rel-got-n64.d: Rename to... * testsuite/ld-mips-elf/elf-rel-got-n64-irix.d: ... this. * testsuite/ld-mips-elf/elf-rel-got-n64-linux.d: Rename to... * testsuite/ld-mips-elf/elf-rel-got-n64.d: ... this. * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Rename to... * testsuite/ld-mips-elf/elf-rel-xgot-n64-irix.d: ... this. * testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.dd: Rename to... * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: ... this. * testsuite/ld-mips-elf/mips-elf.exp: Update accordingly. Define `irix' as a shorthand for `[istarget *-*-irix*]' and use it throughout.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/mips-elf.exp')
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp9
1 files changed, 5 insertions, 4 deletions
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 8b0594a..1a56340 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -58,6 +58,7 @@ set has_newabi [expr [istarget *-*-irix6*] \
|| [istarget mips*-mti-elf*] \
|| [istarget mips*-img-elf*]]
set has_elf32 [expr ![istarget *-*-openbsd*]]
+set irix [expr [istarget *-*-irix*]]
set linux_gnu [expr [istarget mips*-*-linux*]]
set embedded_elf [expr [istarget mips*-*-elf]]
@@ -390,10 +391,10 @@ if $has_newabi {
run_dump_test "elf-rel-got-n32" [list [list ld $abi_ldflags(n32)]]
run_dump_test "elf-rel-xgot-n32" [list [list ld $abi_ldflags(n32)]]
}
- if { $linux_gnu } {
- run_dump_test "elf-rel-got-n64-linux" \
+ if { $irix } {
+ run_dump_test "elf-rel-got-n64-irix" \
[list [list ld $abi_ldflags(n64)]]
- run_dump_test "elf-rel-xgot-n64-linux" \
+ run_dump_test "elf-rel-xgot-n64-irix" \
[list [list ld $abi_ldflags(n64)]]
} elseif { $embedded_elf } {
run_dump_test "elf-rel-got-n64-embed" \
@@ -1053,7 +1054,7 @@ foreach { abi } $abis {
set loadaddr [string map \
{o32 0x12340000 n32 0x12340000 n64 0x123456789abc0000} $abi]
set suff [subst \
- [expr { [istarget *-*-irix*] \
+ [expr { $irix \
? [string map {o32 o32-irix n32 n32 n64 n64} $abi] \
: $abi }]]
run_ld_link_tests [list \