From b3066ae8259d3adb4e00ee8145c55df16c3d7261 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 17 Jan 2016 12:13:43 +1030 Subject: 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. --- binutils/ChangeLog | 5 +++++ binutils/testsuite/lib/binutils-common.exp | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'binutils') 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 + * testsuite/lib/binutils-common.exp (is_elf_format): Return true + for m68hc11/12 and xgate triples. + +2016-01-17 Alan Modra + * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32. 2016-01-01 Alan Modra 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*] -- cgit v1.1