This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: ld tests to verify HC12/HCS12 link


Hi!

I committed the following new test to verify the link between -m68hc12 and -m68hcs12
object files.

Stephane

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.
Index: ld-m68hc11/link-hc12.s
===================================================================
RCS file: ld-m68hc11/link-hc12.s
diff -N ld-m68hc11/link-hc12.s
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld-m68hc11/link-hc12.s	13 May 2003 19:10:59 -0000
@@ -0,0 +1,6 @@
+;;; Test 68HCS12 and 68HC12 mixes (compatible case)
+;;;
+	.sect .text
+	.globl main
+main:
+	rts
Index: ld-m68hc11/link-hcs12.d
===================================================================
RCS file: ld-m68hc11/link-hcs12.d
diff -N ld-m68hc11/link-hcs12.d
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld-m68hc11/link-hcs12.d	13 May 2003 19:10:59 -0000
@@ -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
+
+
Index: ld-m68hc11/link-hcs12.s
===================================================================
RCS file: ld-m68hc11/link-hcs12.s
diff -N ld-m68hc11/link-hcs12.s
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld-m68hc11/link-hcs12.s	13 May 2003 19:10:59 -0000
@@ -0,0 +1,7 @@
+;;; Test 68HCS12 and 68HC12 mixes (compatible case)
+;;;
+	.sect .text
+	.globl _start
+_start:
+	bsr	main
+	bra	_start

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]