2002-10-03 Chris Demetriou <cgd@broadcom.com>
authorChris Demetriou <cgd@google.com>
Thu, 3 Oct 2002 23:56:24 +0000 (23:56 +0000)
committerChris Demetriou <cgd@google.com>
Thu, 3 Oct 2002 23:56:24 +0000 (23:56 +0000)
        * 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.

ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/branch-misc-1.d
ld/testsuite/ld-mips-elf/branch-misc-2.d
ld/testsuite/ld-mips-elf/mips-elf.exp

index f48490f114c31c98430dab301fc5d6dc1df0b324..49f516d927445a27aac23d76728108d495c06a6a 100644 (file)
@@ -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,
index 08b93de4505e22eda0c291980d6a618cce41a17a..36bceb7960350d7c459797faf7c8f99ecafb1ae3 100644 (file)
@@ -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
        \.\.\.
        \.\.\.
        \.\.\.
index 86c707028ba9a767e720a8ac17d8754a978c0be8..d06783a8394966ff13b8b369f659ed203f2ecc55 100644 (file)
@@ -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
        \.\.\.
        \.\.\.
        \.\.\.
index 63de3ca7decad7bb7202cebeaa0aa120419ed9e8..a1ea08b17b19344d2d8b22b245fc75102fa26156 100644 (file)
 
 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"
     }
 }
This page took 0.02893 seconds and 4 git commands to generate.