aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-s12z/reloc-opr.d
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-09-03 13:22:36 +0200
committerJohn Darrington <john@darrington.wattle.id.au>2018-09-16 17:50:09 +0200
commit43276309ded887327f434374b37572d1bc0778eb (patch)
treefea8a90d61ee7e8758181583d33b7f4e911a62ce /ld/testsuite/ld-s12z/reloc-opr.d
parent57d5aa265f50b8c8c1ebbe4e67285aa9f5a53369 (diff)
downloadgdb-43276309ded887327f434374b37572d1bc0778eb.zip
gdb-43276309ded887327f434374b37572d1bc0778eb.tar.gz
gdb-43276309ded887327f434374b37572d1bc0778eb.tar.bz2
S12Z Add tests for relocs.
ld/testsuite/ld-s12z/ * reloc-ext18-1.d: New file. * reloc-ext18-1.d: New file. * reloc-ext18-2.d: New file. * reloc-ext18.d: New file. * reloc-ext18.s: New file. * reloc-ext24.d: New file. * reloc-ext24.s: New file. * reloc-ext32.d: New file. * reloc-ext32.s: New file. * reloc-opr.d: New file. * reloc-opr.d: New file. * reloc-opr.s: New file. * reloc-pc-rel-7-15.d: New file. * reloc-pc-rel-7-15.s: New file.
Diffstat (limited to 'ld/testsuite/ld-s12z/reloc-opr.d')
-rw-r--r--ld/testsuite/ld-s12z/reloc-opr.d15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-s12z/reloc-opr.d b/ld/testsuite/ld-s12z/reloc-opr.d
new file mode 100644
index 0000000..35736c5
--- /dev/null
+++ b/ld/testsuite/ld-s12z/reloc-opr.d
@@ -0,0 +1,15 @@
+#source: reloc-opr.s
+#ld: --no-relax --defsym bar=0xabcdef
+#objdump: -d -r
+
+tmpdir/dump: file format elf32-s12z
+
+
+Disassembly of section .text:
+
+00fe0000 <_etext-0x5>:
+ fe0000: 83 fa ab cd sub d5, bar
+ fe0004: ef
+
+00fe0005 <_etext>:
+ ...