--- /dev/null
+#source: reloc-ext18.s
+#ld: --no-relax --defsym x=0x1abcd
+#objdump: -d -r
+
+tmpdir/dump:     file format elf32-s12z
+
+
+Disassembly of section .text:
+
+00fe0000 <here>:
+  fe0000:      a0 f9 ab cd     ld d2, x
 
--- /dev/null
+#source: reloc-ext18.s
+#ld: --no-relax --defsym x=0x2abcd
+#objdump: -d -r
+
+tmpdir/dump:     file format elf32-s12z
+
+
+Disassembly of section .text:
+
+00fe0000 <here>:
+  fe0000:      a0 fc ab cd     ld d2, x
 
--- /dev/null
+#source: reloc-ext18.s
+#ld: --no-relax --defsym x=0xabcd
+#objdump: -d -r
+
+tmpdir/dump:     file format elf32-s12z
+
+
+Disassembly of section .text:
+
+00fe0000 <here>:
+  fe0000:      a0 f8 ab cd     ld d2, x
 
--- /dev/null
+
+here:
+       ;; ld d2, 0
+       .byte 0xa0
+       .byte 0xf8
+       .byte 0x00
+       .byte 0x00
+
+
+.reloc here+1,R_S12Z_EXT18, x
+
 
--- /dev/null
+#source: reloc-ext24.s
+#ld: --no-relax --defsym foobar=0xabcdef
+#objdump: -d -r
+
+tmpdir/dump:     file format elf32-s12z
+
+
+Disassembly of section .text:
+
+00fe0000 <here>:
+  fe0000:      ba ab cd ef     jmp foobar
+  fe0004:      01              nop
+
+00fe0005 <_etext>:
+       ...
 
--- /dev/null
+       
+here:
+       ;; jmp foobar
+       .byte 0xba
+       .byte 0x00
+       .byte 0x00
+       .byte 0x00
+       nop
+
+
+.reloc here+1,R_S12Z_EXT24, foobar
+
 
--- /dev/null
+#source: reloc-ext32.s
+#ld: --no-relax --defsym foobar=0x12345678
+#objdump: -r -s  --section=.text
+
+tmpdir/dump:     file format elf32-s12z
+
+Contents of section .text:
+ fe0000 01123456 7801                        ..4Vx.          
 
--- /dev/null
+       
+here:
+       nop
+       .byte 0x00
+       .byte 0x00
+       .byte 0x00
+       .byte 0x00
+       nop
+
+
+.reloc here+1,R_S12Z_EXT32, foobar
+
 
--- /dev/null
+#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>:
+       ...
 
--- /dev/null
+
+;;;  This byte sequence corresponds to sub d5, xxx
+       .byte 0x83
+       .byte 0xfa
+       .byte 0x00
+       .byte 0x00
+       .byte 0x00
+       .reloc .-3,R_S12Z_OPR,bar
 
--- /dev/null
+#source: reloc-pc-rel-7-15.s
+#ld: --no-relax --defsym here=0xfe0000 --defsym foo=here-9
+#objdump: -d -r
+
+tmpdir/dump:     file format elf32-s12z
+
+
+Disassembly of section .text:
+
+00fe0000 <here>:
+  fe0000:      2f ff f6        ble \*\-10
+  fe0003:      01              nop$
\ No newline at end of file
 
--- /dev/null
+
+here:
+       ;; BLE
+       .byte 0x2f
+       .byte 0x80
+       .byte 0x00
+       nop
+
+
+.reloc here+1,R_S12Z_PCREL_7_15, foo
+