aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-01-17 12:13:43 +1030
committerAlan Modra <amodra@gmail.com>2016-01-17 12:13:43 +1030
commitb3066ae8259d3adb4e00ee8145c55df16c3d7261 (patch)
tree8fc9159073783c5cf9f84f879db104d6686f1bfa
parentadec12c116e2e184cfa37d1c39cd2d83a7e89d31 (diff)
downloadgdb-b3066ae8259d3adb4e00ee8145c55df16c3d7261.zip
gdb-b3066ae8259d3adb4e00ee8145c55df16c3d7261.tar.gz
gdb-b3066ae8259d3adb4e00ee8145c55df16c3d7261.tar.bz2
m68hc11/12 and xgate config.sub weirdness
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.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/testsuite/lib/binutils-common.exp7
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/testsuite/gas/cfi/cfi.exp2
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/testsuite/ld-elf/endsym.d1
-rw-r--r--ld/testsuite/ld-elf/pr14156a.d1
-rw-r--r--ld/testsuite/ld-elf/pr14926.d2
-rw-r--r--ld/testsuite/ld-elf/sec64k.exp5
-rw-r--r--ld/testsuite/lib/ld-lib.exp1
10 files changed, 34 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 140a9853..212ea48 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,10 @@
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.
2016-01-01 Alan Modra <amodra@gmail.com>
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index 64b66a4..dbbbc79 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -20,6 +20,13 @@
# 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*]
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 59e31a7..424c790 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/cfi/cfi.exp b/gas/testsuite/gas/cfi/cfi.exp
index 7cda4d2..379e6f4 100644
--- a/gas/testsuite/gas/cfi/cfi.exp
+++ b/gas/testsuite/gas/cfi/cfi.exp
@@ -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 {
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 09e11f5..1596793 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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)):
diff --git a/ld/testsuite/ld-elf/endsym.d b/ld/testsuite/ld-elf/endsym.d
index 912d3de..483cc83 100644
--- a/ld/testsuite/ld-elf/endsym.d
+++ b/ld/testsuite/ld-elf/endsym.d
@@ -3,6 +3,7 @@
#ld: --sort-common
#nm: -n
#notarget: hppa*-*-hpux*
+#xfail: m68hc1*-* xgate-*
#...
.* end
diff --git a/ld/testsuite/ld-elf/pr14156a.d b/ld/testsuite/ld-elf/pr14156a.d
index 6476857..efdc846 100644
--- a/ld/testsuite/ld-elf/pr14156a.d
+++ b/ld/testsuite/ld-elf/pr14156a.d
@@ -5,6 +5,7 @@
#source: initn.s
#ld: --sort-section=alignment
#nm: -n
+#xfail: m68hc1*-* xgate-*
#...
[0-9a-f]+ T foo
diff --git a/ld/testsuite/ld-elf/pr14926.d b/ld/testsuite/ld-elf/pr14926.d
index 4f7fef4..88c521c 100644
--- a/ld/testsuite/ld-elf/pr14926.d
+++ b/ld/testsuite/ld-elf/pr14926.d
@@ -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
#...
diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp
index f3cf287..7d079ce 100644
--- a/ld/testsuite/ld-elf/sec64k.exp
+++ b/ld/testsuite/ld-elf/sec64k.exp
@@ -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.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index e56b11e..f4283a5 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1745,6 +1745,7 @@ proc check_shared_lib_support { } {
&& ![istarget spu-*-*]
&& ![istarget v850*-*-*]
&& ![istarget visium-*-*]
+ && ![istarget xgate-*-*]
&& ![istarget xstormy16-*-*]
&& ![istarget *-*-irix*]
&& ![istarget *-*-rtems] } {