diff options
author | Christian Groessler <chris@groessler.org> | 2016-06-04 22:15:52 +0200 |
---|---|---|
committer | Christian Groessler <chris@groessler.org> | 2016-06-04 22:15:52 +0200 |
commit | 2ac27cd3c16ad828f96991f8f7b83a4bc10cae6c (patch) | |
tree | 8d8584daeb0ace52e78510bce506baf9c650c602 /ld/testsuite/ld-z8k/reloc.dd | |
parent | de3da6457440a16311c7972e673a3c33e9621763 (diff) | |
download | gdb-2ac27cd3c16ad828f96991f8f7b83a4bc10cae6c.zip gdb-2ac27cd3c16ad828f96991f8f7b83a4bc10cae6c.tar.gz gdb-2ac27cd3c16ad828f96991f8f7b83a4bc10cae6c.tar.bz2 |
Add z8k ld testsuite and fix range check in coff-z8k.c
bfd/
* coff-z8k.c (extra_case): Fix range check for R_JR relocation.
ld/
* ld/testsuite/ld-z8k/0filler.s: New file.
* ld/testsuite/ld-z8k/branch-target.s: New file.
* ld/testsuite/ld-z8k/branch-target2.s: New file.
* ld/testsuite/ld-z8k/calr-back-8001.d: New file.
* ld/testsuite/ld-z8k/calr-back-8002.d: New file.
* ld/testsuite/ld-z8k/calr-back-fail-8001.d: New file.
* ld/testsuite/ld-z8k/calr-back-fail-8002.d: New file.
* ld/testsuite/ld-z8k/calr-forw-8001.d: New file.
* ld/testsuite/ld-z8k/calr-forw-8002.d: New file.
* ld/testsuite/ld-z8k/calr-forw-fail-8001.d: New file.
* ld/testsuite/ld-z8k/calr-forw-fail-8002.d: New file.
* ld/testsuite/ld-z8k/calr-opcode.s: New file.
* ld/testsuite/ld-z8k/dbjnz-forw-8001.d: New file.
* ld/testsuite/ld-z8k/dbjnz-forw-8002.d: New file.
* ld/testsuite/ld-z8k/dbjnz-forw-fail-8001.d: New file.
* ld/testsuite/ld-z8k/dbjnz-forw-fail-8002.d: New file.
* ld/testsuite/ld-z8k/dbjnz-opcode.s: New file.
* ld/testsuite/ld-z8k/djnz-back-8001.d: New file.
* ld/testsuite/ld-z8k/djnz-back-8002.d: New file.
* ld/testsuite/ld-z8k/djnz-back-fail-8001.d: New file.
* ld/testsuite/ld-z8k/djnz-back-fail-8002.d: New file.
* ld/testsuite/ld-z8k/djnz-forw-8001.d: New file.
* ld/testsuite/ld-z8k/djnz-forw-8002.d: New file.
* ld/testsuite/ld-z8k/djnz-forw-fail-8001.d: New file.
* ld/testsuite/ld-z8k/djnz-forw-fail-8002.d: New file.
* ld/testsuite/ld-z8k/djnz-opcode.s: New file.
* ld/testsuite/ld-z8k/filler.s: New file.
* ld/testsuite/ld-z8k/jr-back-8001.d: New file.
* ld/testsuite/ld-z8k/jr-back-8002.d: New file.
* ld/testsuite/ld-z8k/jr-back-fail-8001.d: New file.
* ld/testsuite/ld-z8k/jr-back-fail-8002.d: New file.
* ld/testsuite/ld-z8k/jr-forw-8001.d: New file.
* ld/testsuite/ld-z8k/jr-forw-8002.d: New file.
* ld/testsuite/ld-z8k/jr-forw-fail-8001.d: New file.
* ld/testsuite/ld-z8k/jr-forw-fail-8002.d: New file.
* ld/testsuite/ld-z8k/jr-opcode.s: New file.
* ld/testsuite/ld-z8k/ldr-back-8001.d: New file.
* ld/testsuite/ld-z8k/ldr-back-8002.d: New file.
* ld/testsuite/ld-z8k/ldr-back-fail-8001.d: New file.
* ld/testsuite/ld-z8k/ldr-back-fail-8002.d: New file.
* ld/testsuite/ld-z8k/ldr-forw-8001.d: New file.
* ld/testsuite/ld-z8k/ldr-forw-8002.d: New file.
* ld/testsuite/ld-z8k/ldr-forw-fail-8001.d: New file.
* ld/testsuite/ld-z8k/ldr-forw-fail-8002.d: New file.
* ld/testsuite/ld-z8k/ldr-opcode.s: New file.
* ld/testsuite/ld-z8k/ldrb-forw-8001.d: New file.
* ld/testsuite/ld-z8k/ldrb-forw-8002.d: New file.
* ld/testsuite/ld-z8k/ldrb-forw-fail-8001.d: New file.
* ld/testsuite/ld-z8k/ldrb-forw-fail-8002.d: New file.
* ld/testsuite/ld-z8k/ldrb-opcode.s: New file.
* ld/testsuite/ld-z8k/ldrb-opcode2.s: New file.
* ld/testsuite/ld-z8k/other-file.s: New file.
* ld/testsuite/ld-z8k/reloc.dd: New file.
* ld/testsuite/ld-z8k/reloc.ld: New file.
* ld/testsuite/ld-z8k/relocseg.dd: New file.
* ld/testsuite/ld-z8k/relocseg.ld: New file.
* ld/testsuite/ld-z8k/relocseg1.dd: New file.
* ld/testsuite/ld-z8k/test-ld.sh: New file.
* ld/testsuite/ld-z8k/this-file.s: New file.
* ld/testsuite/ld-z8k/z8k.exp: New file.
Diffstat (limited to 'ld/testsuite/ld-z8k/reloc.dd')
-rw-r--r-- | ld/testsuite/ld-z8k/reloc.dd | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ld/testsuite/ld-z8k/reloc.dd b/ld/testsuite/ld-z8k/reloc.dd new file mode 100644 index 0000000..596bb4f --- /dev/null +++ b/ld/testsuite/ld-z8k/reloc.dd @@ -0,0 +1,61 @@ + +.*: file format coff-z8k + + +Disassembly of section \.text: + +00001000 <this_start>: + 1000: 8d07 nop + 1002: e8fe jr t,0x1000 + 1004: e81e jr t,0x1042 + 1006: 5e08 1000 jp t,0x1000 + 100a: 5e08 1042 jp t,0x1042 + 100e: 5f00 1042 call 0x1042 + 1012: 5f00 107c call 0x107c + 1016: 5f00 1000 call 0x1000 + 101a: 5f00 1036 call 0x1036 + 101e: dfef calr 0x1042 + 1020: dfd3 calr 0x107c + 1022: d012 calr 0x1000 + 1024: dff8 calr 0x1036 + 1026: 6101 200e ld r1,0x200e + 102a: 6101 2004 ld r1,0x2004 + 102e: 2101 200e ld r1,#0x200e + 1032: 2101 2004 ld r1,#0x2004 + +00001036 <this_label>: + 1036: ca04 ldb rl2,#0x4 + 1038: ca14 ldb rl2,#0x14 + 103a: ca0e ldb rl2,#0xe + 103c: ca1e ldb rl2,#0x1e + 103e: a6b3 bitb rl3,#0x3 + 1040: 8d07 nop + +00001042 <other_start>: + 1042: 8d07 nop + 1044: f182 djnz r1,0x1042 + 1046: f809 dbjnz rl0,0x1036 + 1048: e8db jr t,0x1000 + 104a: e8fb jr t,0x1042 + 104c: 5e08 1000 jp t,0x1000 + 1050: 5e08 1042 jp t,0x1042 + 1054: 5f00 1042 call 0x1042 + 1058: 5f00 107c call 0x107c + 105c: 5f00 1000 call 0x1000 + 1060: 5f00 1036 call 0x1036 + 1064: d012 calr 0x1042 + 1066: dff6 calr 0x107c + 1068: d035 calr 0x1000 + 106a: d01b calr 0x1036 + 106c: 6101 200e ld r1,0x200e + 1070: 6101 2004 ld r1,0x2004 + 1074: 2101 200e ld r1,#0x200e + 1078: 2101 2004 ld r1,#0x2004 + +0000107c <other_label>: + 107c: ca04 ldb rl2,#0x4 + 107e: ca14 ldb rl2,#0x14 + 1080: ca0e ldb rl2,#0xe + 1082: ca1e ldb rl2,#0x1e + 1084: bd5a ldk r5,#0xa + 1086: 8d07 nop |