* ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
authorAlan Modra <amodra@gmail.com>
Mon, 13 Feb 2012 02:31:53 +0000 (02:31 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 13 Feb 2012 02:31:53 +0000 (02:31 +0000)
* ld-m68hc11/adj-brset.d: Remove redundant #target line.  Add
-m m68hc11elf to ld invocation.
* ld-m68hc11/adj-jump.d: Likewise.
* ld-m68hc11/bug-1403.d: Likewise.
* ld-m68hc11/bug-1417.d: Likewise.
* ld-m68hc11/bug-3331.d: Likewise.
* ld-m68hc11/relax-direct.d: Likewise.
* ld-m68hc11/relax-group.d: Likewise.
* ld-m68hc11/far-hc11.d: Remove redundant #target line.  Adjust for
changed addresses.
* ld-m68hc11/far-hc12.d: Remove redundant #target line.
* ld-m68hc11/link-hcs12.d: Likewise, and adjust for header changes.

12 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-m68hc11/adj-brset.d
ld/testsuite/ld-m68hc11/adj-jump.d
ld/testsuite/ld-m68hc11/bug-1403.d
ld/testsuite/ld-m68hc11/bug-1417.d
ld/testsuite/ld-m68hc11/bug-3331.d
ld/testsuite/ld-m68hc11/far-hc11.d
ld/testsuite/ld-m68hc11/far-hc12.d
ld/testsuite/ld-m68hc11/link-hcs12.d
ld/testsuite/ld-m68hc11/m68hc11.exp
ld/testsuite/ld-m68hc11/relax-direct.d
ld/testsuite/ld-m68hc11/relax-group.d

index b53cb8b977666263708264f7d708066ffbfd0274..f1c82a066a6428d6ecc4278c0ac0e472560018ef 100644 (file)
@@ -1,18 +1,34 @@
+2012-02-13  Alan Modra  <amodra@gmail.com>
+
+       * ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
+       * ld-m68hc11/adj-brset.d: Remove redundant #target line.  Add
+       -m m68hc11elf to ld invocation.
+       * ld-m68hc11/adj-jump.d: Likewise.
+       * ld-m68hc11/bug-1403.d: Likewise.
+       * ld-m68hc11/bug-1417.d: Likewise.
+       * ld-m68hc11/bug-3331.d: Likewise.
+       * ld-m68hc11/relax-direct.d: Likewise.
+       * ld-m68hc11/relax-group.d: Likewise.
+       * ld-m68hc11/far-hc11.d: Remove redundant #target line.  Adjust for
+       changed addresses.
+       * ld-m68hc11/far-hc12.d: Remove redundant #target line.
+       * ld-m68hc11/link-hcs12.d: Likewise, and adjust for header changes.
+
 2012-02-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/13675
        * ld-i386/tlsnopic.dd: Update no-op padding.
-       * ld-i386/tlspic.dd: Likewise. 
+       * ld-i386/tlspic.dd: Likewise.
 
 2012-01-31  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/13616
        * ld-i386/tlsbindesc.dd: Update no-op padding.
-       * ld-i386/tlsnopic.dd: Likewise. 
-       * ld-i386/tlspic.dd: Likewise. 
-       * ld-x86-64/tlsbin.dd: Likewise. 
-       * ld-x86-64/tlsbindesc.dd: Likewise. 
-       * ld-x86-64/tlspic.dd: Likewise. 
+       * ld-i386/tlsnopic.dd: Likewise.
+       * ld-i386/tlspic.dd: Likewise.
+       * ld-x86-64/tlsbin.dd: Likewise.
+       * ld-x86-64/tlsbindesc.dd: Likewise.
+       * ld-x86-64/tlspic.dd: Likewise.
 
 2012-01-17  Alan Modra  <amodra@gmail.com>
 
index f1788f7feca490fb0b3238956a871a079c0eee46..a6306cf67aecd3cd3deac956affb7b8c69cab63e 100644 (file)
@@ -1,8 +1,7 @@
 #source: adj-brset.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32\-m68hc11
 
index be87524717bfd7dd7782a34356738090f6f89115..da181bdbab58d5707cf0e3700c4718b2fa61709a 100644 (file)
@@ -1,8 +1,7 @@
 #source: adj-jump.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32\-m68hc11
 
index c643cd1678aabf535b46fca8e1f4fb57e3f00fa6..dfd69b083e7526b3a05e8b7e0d4aaac1fb5bcd7b 100644 (file)
@@ -1,8 +1,7 @@
 #source: bug-1403.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32-m68hc11
 
index 84b3ad45d88b819da7871e33218d35a139740097..1947506f427e7ad14d57c2dcbb4e6a2a0ed9a768 100644 (file)
@@ -1,8 +1,7 @@
 #source: bug-1417.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32-m68hc11
 
index 91050bf7e117cba1000f8c59a21ad9a0af6024be..cee93ab656e038f192acf03b16f4226f39279e1f 100644 (file)
@@ -1,8 +1,7 @@
 #source: bug-3331.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32-m68hc11
 
index e38051114fbbc36a351f116f692d528436cd4dfc..d563356ae105caa35563d2945ca95cd25eb32e0c 100644 (file)
@@ -2,31 +2,30 @@
 #as: -m68hc11
 #ld: -m m68hc11elf
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*:     file format elf32-m68hc11
 
 Disassembly of section .text:
 0+8000 <tramp._far_foo> pshb
 0+8001 <tramp._far_foo\+0x1> ldab      \#0
-0+8003 <tramp._far_foo\+0x3> ldy       \#0+6c <_far_foo>
+0+8003 <tramp._far_foo\+0x3> ldy       \#0+8072 <_far_foo>
 0+8007 <tramp._far_foo\+0x7> jmp       0+8056 <__far_trampoline>
 0+800a <tramp._far_bar> pshb
 0+800b <tramp._far_bar\+0x1> ldab      \#0
-0+800d <tramp._far_bar\+0x3> ldy       \#0+64 <stack>
+0+800d <tramp._far_bar\+0x3> ldy       \#0+806a .*
 0+8011 <tramp._far_bar\+0x7> jmp       0+8056 <__far_trampoline>
 0+8014 <_start> lds    \#0+64 <stack>
-0+8017 <_start\+0x3> ldx       \#0+abcd <__data_image\+0x2b63>
+0+8017 <_start\+0x3> ldx       \#0+abcd .*
 0+801a <_start\+0x6> pshx
-0+801b <_start\+0x7> ldd       \#0+1234 <__data_section_start\+0x134>
-0+801e <_start\+0xa> ldx       \#0+5678 <__data_section_start\+0x4578>
+0+801b <_start\+0x7> ldd       \#0+1234 .*
+0+801e <_start\+0xa> ldx       \#0+5678 .*
 0+8021 <_start\+0xd> jsr       0+800a <tramp._far_bar>
-0+8024 <_start\+0x10> cpx      \#0+1234 <__data_section_start\+0x134>
+0+8024 <_start\+0x10> cpx      \#0+1234 .*
 0+8027 <_start\+0x13> bne      0+804e <fail>
-0+8029 <_start\+0x15> cpd      \#0+5678 <__data_section_start\+0x4578>
+0+8029 <_start\+0x15> cpd      \#0+5678 .*
 0+802d <_start\+0x19> bne      0+804e <fail>
 0+802f <_start\+0x1b> pulx
-0+8030 <_start\+0x1c> cpx      \#0+abcd <__data_image\+0x2b63>
+0+8030 <_start\+0x1c> cpx      \#0+abcd .*
 0+8033 <_start\+0x1f> bne      0+804e <fail>
 0+8035 <_start\+0x21> ldd      \#0+8000 <tramp._far_foo>
 0+8038 <_start\+0x24> xgdx
@@ -35,7 +34,7 @@ Disassembly of section .text:
 0+803e <_start\+0x2a> xgdy
 0+8040 <_start\+0x2c> jsr      0,y
 0+8043 <_start\+0x2f> ldaa     \#0
-0+8045 <_start\+0x31> ldy      \#0+73 <_far_no_tramp>
+0+8045 <_start\+0x31> ldy      \#0+8079 <_far_no_tramp>
 0+8049 <_start\+0x35> bsr      0+8066 <__call_a16>
 0+804b <_start\+0x37> clra
 0+804c <_start\+0x38> clrb
@@ -59,15 +58,15 @@ Disassembly of section .text:
 0+8066 <__call_a16> psha
 0+8067 <__call_a16\+0x1> jmp   0,y
 Disassembly of section .bank1:
-0+64 <_far_bar> jsr    0+6b <local_bank1>
-0+67 <_far_bar\+0x3> xgdx
-0+68 <_far_bar\+0x4> jmp       0+8054 <__return>
-0+6b <local_bank1> rts
+0+806a <_far_bar> jsr  0+8071 <local_bank1>
+0+806d <_far_bar\+0x3> xgdx
+0+806e <_far_bar\+0x4> jmp     0+8054 <__return>
+0+8071 <local_bank1> rts
 Disassembly of section .bank2:
-0+6c <_far_foo> jsr    0+72 <local_bank2>
-0+6f <_far_foo\+0x3> jmp       0+8054 <__return>
-0+72 <local_bank2> rts
+0+8072 <_far_foo> jsr  0+8078 <local_bank2>
+0+8075 <_far_foo\+0x3> jmp     0+8054 <__return>
+0+8078 <local_bank2> rts
 Disassembly of section .bank3:
-0+73 <_far_no_tramp> jsr       0+79 <local_bank3>
-0+76 <_far_no_tramp\+0x3> jmp  0+8054 <__return>
-0+79 <local_bank3> rts
+0+8079 <_far_no_tramp> jsr     0+807f <local_bank3>
+0+807c <_far_no_tramp\+0x3> jmp        0+8054 <__return>
+0+807f <local_bank3> rts
index 304ae870edb96ce21d1dafd0dea23c5e4fe2e1b1..09b3fec1712cf8e20b727342a821e8fe7ba93147 100644 (file)
@@ -2,7 +2,6 @@
 #as: -m68hc12
 #ld: -m m68hc12elf --script $srcdir/$subdir/far-hc12.ld
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*:     file format elf32\-m68hc12
 
index f243da2460916bb8f8213480cdb17f56655ae5cd..d90fcf6cda86e24e9ea04debbcb7bd3bca9b4c6f 100644 (file)
@@ -3,17 +3,12 @@
 #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:
index 103b7925042bf4623e9a302ef6ead20d1be0c0ff..d673bc023df04fae4f2f5029bd6b19406bb74345 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for run_dump_test based ld-m68hc11 tests.
-#   Copyright 2002, 2005, 2007 Free Software Foundation, Inc.
+#   Copyright 2002, 2005, 2007, 2012 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -22,7 +22,8 @@
 
 # Test 68HC11 relaxing.  This tests the assembler as well as the linker.
 
-if { ![istarget m6811-*-*] && ![istarget m6812-*-*] } {
+if { ![istarget m6811-*-*] && ![istarget m6812-*-*]
+     && ![istarget m68hc11-*-*] && ![istarget m68hc12-*-*] } {
     return
 }
 
index 9bd0822a9d453b0e490b3c74ca35168e9c77adc4..3de3d9a8d661975506bb448a966a6016768111c6 100644 (file)
@@ -1,8 +1,7 @@
 #source: relax-direct.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32-m68hc11
 
index baf294b489d6eddf185225f1011a031063d946aa..25ac588e57a315d920cdc4f7258d46b94d2946e0 100644 (file)
@@ -1,8 +1,7 @@
 #source: relax-group.s
 #as: -m68hc11
-#ld: --relax
+#ld: -m m68hc11elf --relax
 #objdump: -d --prefix-addresses -r
-#target: m6811-*-* m6812-*-*
 
 .*: +file format elf32-m68hc11