+2003-03-25 Alexandre Oliva <aoliva@redhat.com>
+
+ * ld-mips-elf/mips-elf.exp: Added...
+ * ld-mips-elf/relax-jalr.s, ld-mips-elf/relax-jalr-n32.d,
+ ld-mips-elf/relax-jalr-n32-shared.d, ld-mips-elf/relax-jalr-n64.d,
+ ld-mips-elf/relax-jalr-n64-shared.d: New tests.
+
2003-03-11 Alexandre Oliva <aoliva@redhat.com>
* ld-mips-elf/mips-elf.exp (linux_gnu): New variable. Add:
# Test multi-got link.
run_dump_test "multi-got-1"
+
+ run_dump_test "relax-jalr-n32"
+ run_dump_test "relax-jalr-n32-shared"
+ run_dump_test "relax-jalr-n64"
+ run_dump_test "relax-jalr-n64-shared"
}
if { $linux_gnu } {
--- /dev/null
+#name: MIPS relax-jalr-shared n32
+#source: relax-jalr.s
+#as: -KPIC -n32
+#objdump: --prefix-addresses -d --show-raw-insn
+#ld: --relax -shared -melf32btsmipn32
+
+.*: file format elf.*mips.*
+
+Disassembly of section \.text:
+ \.\.\.
+ \.\.\.
+.* lw t9,.*
+.* jalr t9
+.* nop
+ \.\.\.
+.* lw t9,.*
+.* jalr t9
+.* nop
+ \.\.\.
+.* lw t9,.*
+.* bal .* <__start>
+.* nop
+ \.\.\.
--- /dev/null
+#name: MIPS relax-jalr n32
+#source: relax-jalr.s
+#as: -KPIC -n32
+#objdump: --prefix-addresses -d --show-raw-insn
+#ld: --relax -melf32btsmipn32
+
+.*: file format elf.*mips.*
+
+Disassembly of section \.text:
+ \.\.\.
+ \.\.\.
+.* lw t9,.*
+.* bal .* <__start>
+.* nop
+ \.\.\.
+.* lw t9,.*
+.* bal .* <__start>
+.* nop
+ \.\.\.
+.* lw t9,.*
+.* bal .* <__start>
+.* nop
+.* nop
--- /dev/null
+#name: MIPS relax-jalr-shared n64
+#source: relax-jalr.s
+#as: -KPIC -64
+#objdump: --prefix-addresses -d --show-raw-insn
+#ld: --relax -shared -melf64btsmip
+
+.*: file format elf.*mips.*
+
+Disassembly of section \.text:
+ \.\.\.
+ \.\.\.
+.* ld t9,.*
+.* jalr t9
+.* nop
+ \.\.\.
+.* ld t9,.*
+.* jalr t9
+.* nop
+ \.\.\.
+.* ld t9,.*
+.* bal .* <__start>
+.* nop
+.* nop
+Disassembly of section \.MIPS\.stubs:
+ \.\.\.
--- /dev/null
+#name: MIPS relax-jalr n64
+#source: relax-jalr.s
+#as: -KPIC -64
+#objdump: --prefix-addresses -d --show-raw-insn
+#ld: --relax -melf64btsmip
+
+.*: file format elf.*mips.*
+
+Disassembly of section \.text:
+ \.\.\.
+ \.\.\.
+.* ld t9,.*
+.* bal .* <__start>
+.* nop
+ \.\.\.
+.* ld t9,.*
+.* bal .* <__start>
+.* nop
+ \.\.\.
+.* ld t9,.*
+.* bal .* <__start>
+.* nop
+.* nop
--- /dev/null
+.globl __start
+ .space 8
+.ent __start
+__start:
+.Lstart:
+ .space 16
+ jal __start
+ .space 32
+ jal __start
+ .space 64
+ jal .Lstart
+.end __start