aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/reloc-3.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/reloc-3.d')
-rw-r--r--ld/testsuite/ld-mips-elf/reloc-3.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/reloc-3.d b/ld/testsuite/ld-mips-elf/reloc-3.d
new file mode 100644
index 0000000..632d999
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/reloc-3.d
@@ -0,0 +1,16 @@
+#name: R_MIPS16_GPREL reloc
+#source: ../../../gas/testsuite/gas/mips/elf-rel6.s
+#objdump: --prefix-addresses -tdr --show-raw-insn
+#ld: -Ttext 0x500000 -e 0x500000 -N
+
+.*: file format elf.*mips.*
+
+#...
+
+Disassembly of section \.text:
+0+500000 <[^>]*> f010 8352 lb v0,-32750\(v1\)
+0+500004 <[^>]*> f010 8353 lb v0,-32749\(v1\)
+0+500008 <[^>]*> f252 8346 lb v0,-28090\(v1\)
+0+50000c <[^>]*> 6500 nop
+0+50000e <[^>]*> 6500 nop
+#pass