aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-03-17 18:45:35 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-03-17 18:45:35 +0000
commit08e8dfaf50092d96a5f1a5cc438230c30e3a13e9 (patch)
tree74ede5105279eca21b82a397e217bd593ce51d9b /ld/testsuite/ld-mips-elf
parent0bcd3e20560a37fde7d6a76cf129aa65e023a5b4 (diff)
downloadgdb-08e8dfaf50092d96a5f1a5cc438230c30e3a13e9.zip
gdb-08e8dfaf50092d96a5f1a5cc438230c30e3a13e9.tar.gz
gdb-08e8dfaf50092d96a5f1a5cc438230c30e3a13e9.tar.bz2
gas/testsuite/
* gas/mips/elf-rel26.d: Add -32. * gas/mips/mips16-intermix.d: Likewise. ld/testsuite/ * ld-mips-elf/mips-elf.exp (o32_as_flags, o32_ld_flags): New variables. (mips16_call_global_test, mips16_intermix_test): Use them.
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp35
1 files changed, 21 insertions, 14 deletions
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index fb32f5c..404ee2a 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -56,6 +56,13 @@ set has_newabi [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]]
set linux_gnu [expr [istarget mips*-*-linux*]]
set embedded_elf [expr [istarget mips*-*-elf]]
+if { [istarget mips64*-linux-gnu] } {
+ set o32_as_flags "-32 -EB"
+ set o32_ld_flags "-melf32btsmip"
+} else {
+ set o32_as_flags ""
+ set o32_ld_flags ""
+}
# Check MIPS16 markings being passed through link.
run_dump_test "mips16-1"
@@ -264,23 +271,23 @@ if {[istarget mips*-*-linux*]} {
run_ld_link_tests $mips_tls_tests
}
-set mips16_call_global_test {
- {"Global calls from mips16"
- ""
- "-mips32r2" {mips16-call-global-1.s mips16-call-global-2.s mips16-call-global-3.s}
- {{objdump -dr mips16-call-global.d}}
- "mips16-call-global"}
-}
+set mips16_call_global_test [list \
+ [list "Global calls from mips16" \
+ "$o32_ld_flags" \
+ "$o32_as_flags -mips32r2" \
+ {mips16-call-global-1.s mips16-call-global-2.s mips16-call-global-3.s} \
+ {{objdump -dr mips16-call-global.d}} \
+ "mips16-call-global"]]
run_ld_link_tests $mips16_call_global_test
-set mips16_intermix_test {
- {"Intermixing mips32 and mips16 functions"
- ""
- "-mips32r2" {mips16-intermix-1.s mips16-intermix-2.s}
- {{objdump -t mips16-intermix.d}}
- "mips16-intermix"}
-}
+set mips16_intermix_test [list \
+ [list "Intermixing mips32 and mips16 functions" \
+ "$o32_ld_flags" \
+ "$o32_as_flags -mips32r2" \
+ {mips16-intermix-1.s mips16-intermix-2.s} \
+ {{objdump -t mips16-intermix.d}} \
+ "mips16-intermix"]]
run_ld_link_tests $mips16_intermix_test