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.
This commit is contained in:
Chris Demetriou 2002-10-03 23:56:24 +00:00
parent 21bd8c3134
commit 30a2f863bc
4 changed files with 55 additions and 35 deletions

View 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,

View 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
\.\.\.
\.\.\.
\.\.\.

View 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
\.\.\.
\.\.\.
\.\.\.

View File

@ -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"
}
}