diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2003-05-13 19:11:45 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2003-05-13 19:11:45 +0000 |
commit | 99573a9826100788aa373724588c2124e2612051 (patch) | |
tree | 9bbd32deed232d79f3a40a2e50270f5bb806e317 /ld/testsuite | |
parent | 47247ced96f6979baa7a23f2bc53ccb6c1b19212 (diff) | |
download | gdb-99573a9826100788aa373724588c2124e2612051.zip gdb-99573a9826100788aa373724588c2124e2612051.tar.gz gdb-99573a9826100788aa373724588c2124e2612051.tar.bz2 |
* ld-m68hc11/link-hcs12.d: New test.
* ld-m68hc11/link-hcs12.s: New file.
* ld-m68hc11/link-hc12.s: New file.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-m68hc11/link-hc12.s | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-m68hc11/link-hcs12.d | 24 | ||||
-rw-r--r-- | ld/testsuite/ld-m68hc11/link-hcs12.s | 7 |
4 files changed, 43 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 9382901..2196be6 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-05-13 Stephane Carrez <stcarrez@nerim.fr> + + * ld-m68hc11/link-hcs12.d: New test. + * ld-m68hc11/link-hcs12.s: New file. + * ld-m68hc11/link-hc12.s: New file. + 2003-05-13 H.J. Lu <hongjiu.lu@intel.com> * ld-elfweak/elfweak.exp: Fix typo. diff --git a/ld/testsuite/ld-m68hc11/link-hc12.s b/ld/testsuite/ld-m68hc11/link-hc12.s new file mode 100644 index 0000000..43b97c5 --- /dev/null +++ b/ld/testsuite/ld-m68hc11/link-hc12.s @@ -0,0 +1,6 @@ +;;; Test 68HCS12 and 68HC12 mixes (compatible case) +;;; + .sect .text + .globl main +main: + rts diff --git a/ld/testsuite/ld-m68hc11/link-hcs12.d b/ld/testsuite/ld-m68hc11/link-hcs12.d new file mode 100644 index 0000000..f243da2 --- /dev/null +++ b/ld/testsuite/ld-m68hc11/link-hcs12.d @@ -0,0 +1,24 @@ +#source: link-hcs12.s -m68hcs12 +#source: link-hc12.s -m68hc12 +#as: -mshort +#ld: -m m68hc12elf +#objdump: -p -d --prefix-addresses -r +#target: m6811-*-* m6812-*-* + +.*: file format elf32\-m68hc12 + +Program Header: + LOAD off 0x0+ vaddr 0x0+1000 paddr 0x0+1000 align 2\*\*12 + filesz 0x0+100 memsz 0x0+100 flags rw- + LOAD off 0x0+1000 vaddr 0x0+8000 paddr 0x0+8000 align 2\*\*12 + filesz 0x0+6 memsz 0x0+6 flags r-x + LOAD off 0x0+1100 vaddr 0x0+1100 paddr 0x0+8006 align 2\*\*12 + filesz 0x0+ memsz 0x0+ flags rw- +private flags = 22:\[abi=16\-bit int, 64\-bit double, cpu=HCS12\] \[memory=flat\] + +Disassembly of section .text: +0+8000 <_start> jsr 0+8005 <main> +0+8003 <_start\+0x3> bra 0+8000 <_start> +0+8005 <main> rts + + diff --git a/ld/testsuite/ld-m68hc11/link-hcs12.s b/ld/testsuite/ld-m68hc11/link-hcs12.s new file mode 100644 index 0000000..868d4cf --- /dev/null +++ b/ld/testsuite/ld-m68hc11/link-hcs12.s @@ -0,0 +1,7 @@ +;;; Test 68HCS12 and 68HC12 mixes (compatible case) +;;; + .sect .text + .globl _start +_start: + bsr main + bra _start |