m68hc11/12 and xgate config.sub weirdness
authorAlan Modra <amodra@gmail.com>
Sun, 17 Jan 2016 01:43:43 +0000 (12:13 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 17 Jan 2016 01:43:43 +0000 (12:13 +1030)
Oddly, config.sub converts a duple ending in -elf for these target to
-unknown-none, which means they aren't seen as elf targets by
binutils.  So, counter that.  This exposes a number of testsuite
issues (ones you would have seen if configuring with a full triple,
say m68hc11-unknown-elf).

binutils/
* testsuite/lib/binutils-common.exp (is_elf_format): Return true
for m68hc11/12 and xgate triples.
gas/
* testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
ld/
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
* testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
* testsuite/ld-elf/pr14156a.d: Likewise.
* testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
* testsuite/ld-elf/sec64k.exp: Likewise.

binutils/ChangeLog
binutils/testsuite/lib/binutils-common.exp
gas/ChangeLog
gas/testsuite/gas/cfi/cfi.exp
ld/ChangeLog
ld/testsuite/ld-elf/endsym.d
ld/testsuite/ld-elf/pr14156a.d
ld/testsuite/ld-elf/pr14926.d
ld/testsuite/ld-elf/sec64k.exp
ld/testsuite/lib/ld-lib.exp

index 140a98538bde5209bc70acd8434f3f8ad49da21f..212ea48c5dc8da40138d0d9092bec2cb8ea91a78 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-17  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/binutils-common.exp (is_elf_format): Return true
+       for m68hc11/12 and xgate triples.
+
 2016-01-17  Alan Modra  <amodra@gmail.com>
 
        * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
index 64b66a478b2af051c020088c53cc8c797c8ccf19..dbbbc792243235b39bd544db7a4c59499f1cf885 100644 (file)
 # True if the object format is known to be ELF.
 #
 proc is_elf_format {} {
+    # config.sub for these targets curiously transforms a target doublet
+    # ending in -elf to -none.  eg. m68hc12-elf to m68hc12-unknown-none
+    # They are always elf.
+    if { [istarget m68hc1*-*] || [istarget xgate-*] } {
+       return 1;
+    }
+
     if { ![istarget *-*-sysv4*]
         && ![istarget *-*-unixware*]
         && ![istarget *-*-elf*]
index 59e31a7dc95d133e970124f34251b7fed2c4ba8d..424c790aa9a87731c5c20cacbe01a8b0338cb8b2 100644 (file)
@@ -1,3 +1,7 @@
+2016-01-17  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
+
 2016-01-14  Nick Clifton  <nickc@redhat.com>
 
        * testsuite/gas/rl78/sp-relative-movw.s: New test.
index 7cda4d2b4cd96fa825b9f1ba6ff9e405810c3ea5..379e6f4f3be743a6d4bcf3b1e433d74dd061c74f 100644 (file)
@@ -73,7 +73,7 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
        run_dump_test "cfi-s390x-1"
     }
 
-} elseif { [istarget "m68*-*"] } then {
+} elseif { [istarget "m68*-*"] && ![istarget "m68hc1*-*"] } then {
     run_dump_test "cfi-m68k"
 
 } elseif { [istarget sparc*-*-*] } then {
index 09e11f525105d2d3ecbba11b6e339ca33388c65c..15967935e3d799d38888fb1f1e66971c07e84a64 100644 (file)
@@ -1,3 +1,11 @@
+2016-01-17  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/lib/ld-lib.exp (check_shared_lib_support): Exclude xgate.
+       * testsuite/ld-elf/endsym.d: xfail m68hc11/12 and xgate.
+       * testsuite/ld-elf/pr14156a.d: Likewise.
+       * testsuite/ld-elf/pr14926.d: Don't run for m68hc11/12 and xgate.
+       * testsuite/ld-elf/sec64k.exp: Likewise.
+
 2016-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * testsuite/ld-arm/arm-elf.exp (Thumb-Thumb farcall v6-M (no profile)):
index 912d3dee9d9b3f79a3ccef38960d73f10aafc12e..483cc830355a48baf4f4b5ffa3a33d772c612a9b 100644 (file)
@@ -3,6 +3,7 @@
 #ld: --sort-common
 #nm: -n
 #notarget: hppa*-*-hpux*
+#xfail: m68hc1*-* xgate-*
 
 #...
 .* end
index 64768575f2f84557bed976230ca41191e56a240e..efdc8461fb898ae2e489d3ca0e417dec233b6786 100644 (file)
@@ -5,6 +5,7 @@
 #source: initn.s
 #ld: --sort-section=alignment
 #nm: -n
+#xfail: m68hc1*-* xgate-*
 
 #...
 [0-9a-f]+ T foo
index 4f7fef4e76d5104073bb47cd2a15cba7d5f4a254..88c521ce87a8e45f7f4d014915b83277c3357d65 100644 (file)
@@ -1,6 +1,6 @@
 #ld: -Ttext=0x60
 #readelf: -S --wide
-#notarget: d10v-*-* msp*-*-* visium-*-* xstormy*-*-*
+#notarget: d10v-* m68hc1*-* msp*-* visium-* xgate-* xstormy*-*
 # the above targets use memory regions that don't allow 0x60 for .text
 
 #...
index f3cf2870038b9d925e3bbaf36b23a71e7c8aa965..7d079ce8fae74eed451de5fac849586957dffc9d 100644 (file)
@@ -40,6 +40,11 @@ if { [istarget "arc-*-*"]
     return
 }
 
+# m68hc11, m68hc12 and xgate run out of address space.
+if { [istarget "m68hc1*-*"] || [istarget "xgate-*"] } {
+    return
+}
+
 # Test >64k sections, with and without -r.  First, create the assembly
 # files.  Have a relocation to another section and one within the local
 # section.
index e56b11eb8b736590232da75ce1953bcd374bb9e7..f4283a5c6d66fed8ff642296e065ba2b0d5f8a8c 100644 (file)
@@ -1745,6 +1745,7 @@ proc check_shared_lib_support { } {
         && ![istarget spu-*-*]
         && ![istarget v850*-*-*]
         && ![istarget visium-*-*]
+        && ![istarget xgate-*-*]
         && ![istarget xstormy16-*-*]
         && ![istarget *-*-irix*]
         && ![istarget *-*-rtems] } {
This page took 0.03254 seconds and 4 git commands to generate.