summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2002-10-03 23:56:24 +0000
committerChris Demetriou <cgd@broadcom.com>2002-10-03 23:56:24 +0000
commitfd029304eeed49866fbfd41e9cdd4c3030e1bd92 (patch)
treee99a45d84a57f75cb3bdc07f7c9d7b7ddeee2318 /ld
parent529a34afae31f7a56492b88c71b99f42da900154 (diff)
downloadbinutils-redhat-fd029304eeed49866fbfd41e9cdd4c3030e1bd92.tar.gz
2002-10-03 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/branch-misc-1.d: Link at 0x500000 and use -N, to be more compatible with non-embedded targets. * ld-mips-elf/branch-misc-2.d: Likewise. * ld-mips-elf/mips-elf.exp: Clean up some comments about embedded PIC tests. (elf): New variable, to control whether generic ELF tests are run. (embedded_elf): New variable, to control whether ELF tests requiring embedded PIC or embedded relocs are run.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog12
-rw-r--r--ld/testsuite/ld-mips-elf/branch-misc-1.d26
-rw-r--r--ld/testsuite/ld-mips-elf/branch-misc-2.d26
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp26
4 files changed, 55 insertions, 35 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index f48490f114..49f516d927 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,15 @@
+2002-10-03 Chris Demetriou <cgd@broadcom.com>
+
+ * ld-mips-elf/branch-misc-1.d: Link at 0x500000 and use -N, to be
+ more compatible with non-embedded targets.
+ * ld-mips-elf/branch-misc-2.d: Likewise.
+
+ * ld-mips-elf/mips-elf.exp: Clean up some comments about embedded
+ PIC tests.
+ (elf): New variable, to control whether generic ELF tests are run.
+ (embedded_elf): New variable, to control whether ELF tests
+ requiring embedded PIC or embedded relocs are run.
+
2002-10-02 Stephen Clarke <stephen.clarke@superh.com>
* ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
diff --git a/ld/testsuite/ld-mips-elf/branch-misc-1.d b/ld/testsuite/ld-mips-elf/branch-misc-1.d
index 08b93de450..36bceb7960 100644
--- a/ld/testsuite/ld-mips-elf/branch-misc-1.d
+++ b/ld/testsuite/ld-mips-elf/branch-misc-1.d
@@ -1,7 +1,7 @@
#name: MIPS branch-misc-1
#source: ../../../gas/testsuite/gas/mips/branch-misc-1.s
#objdump: --prefix-addresses -tdr --show-raw-insn
-#ld: -Ttext 0x400000 -e 0x400000
+#ld: -Ttext 0x500000 -e 0x500000 -N
.*: file format elf.*mips.*
@@ -11,18 +11,18 @@ Disassembly of section \.text:
\.\.\.
\.\.\.
\.\.\.
-0+40003c <[^>]*> 0411fff0 bal 0+400000 <[^>]*>
-0+400040 <[^>]*> 00000000 nop
-0+400044 <[^>]*> 0411fff3 bal 0+400014 <[^>]*>
-0+400048 <[^>]*> 00000000 nop
-0+40004c <[^>]*> 0411fff6 bal 0+400028 <[^>]*>
-0+400050 <[^>]*> 00000000 nop
-0+400054 <[^>]*> 0411000a bal 0+400080 <[^>]*>
-0+400058 <[^>]*> 00000000 nop
-0+40005c <[^>]*> 0411000d bal 0+400094 <[^>]*>
-0+400060 <[^>]*> 00000000 nop
-0+400064 <[^>]*> 04110010 bal 0+4000a8 <[^>]*>
-0+400068 <[^>]*> 00000000 nop
+0+50003c <[^>]*> 0411fff0 bal 0+500000 <[^>]*>
+0+500040 <[^>]*> 00000000 nop
+0+500044 <[^>]*> 0411fff3 bal 0+500014 <[^>]*>
+0+500048 <[^>]*> 00000000 nop
+0+50004c <[^>]*> 0411fff6 bal 0+500028 <[^>]*>
+0+500050 <[^>]*> 00000000 nop
+0+500054 <[^>]*> 0411000a bal 0+500080 <[^>]*>
+0+500058 <[^>]*> 00000000 nop
+0+50005c <[^>]*> 0411000d bal 0+500094 <[^>]*>
+0+500060 <[^>]*> 00000000 nop
+0+500064 <[^>]*> 04110010 bal 0+5000a8 <[^>]*>
+0+500068 <[^>]*> 00000000 nop
\.\.\.
\.\.\.
\.\.\.
diff --git a/ld/testsuite/ld-mips-elf/branch-misc-2.d b/ld/testsuite/ld-mips-elf/branch-misc-2.d
index 86c707028b..d06783a839 100644
--- a/ld/testsuite/ld-mips-elf/branch-misc-2.d
+++ b/ld/testsuite/ld-mips-elf/branch-misc-2.d
@@ -1,7 +1,7 @@
#name: MIPS branch-misc-2
#source: ../../../gas/testsuite/gas/mips/branch-misc-2.s
#objdump: --prefix-addresses -tdr --show-raw-insn
-#ld: -Ttext 0x400000 -e 0x400000
+#ld: -Ttext 0x500000 -e 0x500000 -N
.*: file format elf.*mips.*
@@ -11,18 +11,18 @@ Disassembly of section \.text:
\.\.\.
\.\.\.
\.\.\.
-0+40003c <[^>]*> 0411fff0 bal 0+400000 <[^>]*>
-0+400040 <[^>]*> 00000000 nop
-0+400044 <[^>]*> 0411fff3 bal 0+400014 <[^>]*>
-0+400048 <[^>]*> 00000000 nop
-0+40004c <[^>]*> 0411fff6 bal 0+400028 <[^>]*>
-0+400050 <[^>]*> 00000000 nop
-0+400054 <[^>]*> 0411000a bal 0+400080 <[^>]*>
-0+400058 <[^>]*> 00000000 nop
-0+40005c <[^>]*> 0411000d bal 0+400094 <[^>]*>
-0+400060 <[^>]*> 00000000 nop
-0+400064 <[^>]*> 04110010 bal 0+4000a8 <[^>]*>
-0+400068 <[^>]*> 00000000 nop
+0+50003c <[^>]*> 0411fff0 bal 0+500000 <[^>]*>
+0+500040 <[^>]*> 00000000 nop
+0+500044 <[^>]*> 0411fff3 bal 0+500014 <[^>]*>
+0+500048 <[^>]*> 00000000 nop
+0+50004c <[^>]*> 0411fff6 bal 0+500028 <[^>]*>
+0+500050 <[^>]*> 00000000 nop
+0+500054 <[^>]*> 0411000a bal 0+500080 <[^>]*>
+0+500058 <[^>]*> 00000000 nop
+0+50005c <[^>]*> 0411000d bal 0+500094 <[^>]*>
+0+500060 <[^>]*> 00000000 nop
+0+500064 <[^>]*> 04110010 bal 0+5000a8 <[^>]*>
+0+500068 <[^>]*> 00000000 nop
\.\.\.
\.\.\.
\.\.\.
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 63de3ca7de..a1ea08b17b 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -18,9 +18,22 @@
if { [istarget mips*-*-*] } then {
- # Run embedded-pic tests only if generic ELF.
- if { [istarget mips*-*-elf] } {
- # Check basic PC-relative HI/LO relocs.
+ set elf [expr [istarget mips*-*-elf] || [istarget mips*-*-linux*] || \
+ [istarget mips*-*-netbsd]]
+ set embedded_elf [expr [istarget mips*-*-elf]]
+
+
+ if { $elf } {
+ # Check MIPS16 markings being passed through link.
+ run_dump_test "mips16-1"
+
+ # MIPS branch offset final link checking.
+ run_dump_test "branch-misc-1"
+ run_dump_test "branch-misc-2"
+ }
+
+ if { $embedded_elf } {
+ # Check basic Embedded-PIC PC-relative HI/LO relocs.
run_dump_test "empic1-ln"
run_dump_test "empic1-lp"
run_dump_test "empic1-mn"
@@ -28,7 +41,7 @@ if { [istarget mips*-*-*] } then {
run_dump_test "empic1-sn"
run_dump_test "empic1-sp"
- # PC-relative HI/LO reloc edge-case regression tests.
+ # Embedded-PIC PC-relative HI/LO reloc edge-case regression tests.
# As of 2001-12-26, the linker botches the fwd-0 and rev-1 tests.
run_dump_test "empic2-fwd-0"
run_dump_test "empic2-fwd-1"
@@ -39,11 +52,6 @@ if { [istarget mips*-*-*] } then {
run_dump_test "emrelocs-eb"
run_dump_test "emrelocs-el"
- run_dump_test "mips16-1"
-
run_dump_test "region1"
-
- run_dump_test "branch-misc-1"
- run_dump_test "branch-misc-2"
}
}