diff options
author | Stephen Clarke <stephen.clarke@earthling.net> | 2002-10-14 18:45:03 +0000 |
---|---|---|
committer | Stephen Clarke <stephen.clarke@earthling.net> | 2002-10-14 18:45:03 +0000 |
commit | 24d1feef42cdf9fe812be0f903a312e81593cea6 (patch) | |
tree | ac2220017671855868741f5b0a6bda14b771adf0 /ld/testsuite/ld-sh/sh64/relax.exp | |
parent | 7c519c12a36a82acb25b7fa17a25f8804c8e2b90 (diff) | |
download | gdb-24d1feef42cdf9fe812be0f903a312e81593cea6.zip gdb-24d1feef42cdf9fe812be0f903a312e81593cea6.tar.gz gdb-24d1feef42cdf9fe812be0f903a312e81593cea6.tar.bz2 |
ld-sh/ld-r-1.d: Disable for sh64*-*-linux*.
* ld-sh/sh64/sh64.exp: Likewise.
* ld-sh/sh.exp: Disable relaxing tests for sh64*-*-linux*.
* ld-sh/sh64/abi32.sd: Adjust expected output to include
sh64*-*-linux* formats too.
* ld-sh/sh64/relax.exp: Add emul32 variable to hold target
emulation, and set it appropriately for sh*-*-linux*.
* ld-sh/sh64/relfail.exp: Add variables to hold target
emulation, output format, start symbol, and whether target
supports 64-bit ABI. Set appropriately for sh*-*-linux*.
Diffstat (limited to 'ld/testsuite/ld-sh/sh64/relax.exp')
-rw-r--r-- | ld/testsuite/ld-sh/sh64/relax.exp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/ld/testsuite/ld-sh/sh64/relax.exp b/ld/testsuite/ld-sh/sh64/relax.exp index 18cafea..772a423 100644 --- a/ld/testsuite/ld-sh/sh64/relax.exp +++ b/ld/testsuite/ld-sh/sh64/relax.exp @@ -33,19 +33,25 @@ if ![istarget sh64-*-*] { # 1/0 whether relaxing should have been done or not, or -1 if we expect # the linker to not produce an output file. +if [istarget sh64*-*-linux*] { + set emul32 "shlelf32_linux" +} else { + set emul32 "shelf32" +} + set sh64relaxtests { {"SH64 not relaxing, shcompact" - {"-relax -isa shcompact" "n/a" "n/a" "n/a"} "-mshelf32" 0} + {"-relax -isa shcompact" "n/a" "n/a" "n/a"} "-m$emul32" 0} {"SH64 relaxing, shcompact" - {"-relax -isa shcompact" "n/a" "n/a" "n/a"} "-relax -mshelf32" 1} + {"-relax -isa shcompact" "n/a" "n/a" "n/a"} "-relax -m$emul32" 1} {"SH64 relaxing, shcompacts" - {"-relax -isa shcompact" "-isa shcompact" "n/a" "n/a"} "-relax -mshelf32" 1} + {"-relax -isa shcompact" "-isa shcompact" "n/a" "n/a"} "-relax -m$emul32" 1} {"SH64 relaxing disabled, shmedia" - {"-relax -isa shcompact" "-isa shmedia -no-mix" "n/a" "n/a"} "-relax -mshelf32" 0} + {"-relax -isa shcompact" "-isa shmedia -no-mix" "n/a" "n/a"} "-relax -m$emul32" 0} {"SH64 relaxing disabled, mixed" - {"-relax -isa shcompact" "n/a" "-isa shcompact" "n/a"} "-relax -mshelf32" 0} + {"-relax -isa shcompact" "n/a" "-isa shcompact" "n/a"} "-relax -m$emul32" 0} {"SH64 relaxing disabled, cranges" - {"-relax -isa shcompact" "n/a" "n/a" ""} "-relax -mshelf32" 0} + {"-relax -isa shcompact" "n/a" "n/a" ""} "-relax -m$emul32" 0} } proc run_sh64relaxtest {sh64relaxtests} { @@ -56,6 +62,7 @@ proc run_sh64relaxtest {sh64relaxtests} { global readelf global srcdir global subdir + global emul32 set testindex 0 @@ -66,7 +73,7 @@ proc run_sh64relaxtest {sh64relaxtests} { foreach testentry $sh64relaxtests { set testname [lindex $testentry 0] set as_options [lindex $testentry 1] - set ld_options [lindex $testentry 2] + set ld_options [subst [lindex $testentry 2]] set expect_relaxed [lindex $testentry 3] set is_unresolved 0 |