Recognize more targets as ELF for testing

Message ID 20180515113257.GG23663@bubble.grove.modra.org
State New
Headers show
Series
  • Recognize more targets as ELF for testing
Related show

Commit Message

Alan Modra May 15, 2018, 11:32 a.m.
Also use the correct rel strip-13 variant for more ARM targets.

	* testsuite/lib/binutils-common.exp (is_elf_format): Add chorus,
	cloudabi, fuchsia, kaos and nto.  Merge netbsdelf* into *elf*,
	and *uclinux* into *linux*.
	* testsuite/binutils-all/objcopy.exp: Accept armeb for rel
	strip-13 test, exclude arm-vxworks and arm-windiss.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 33812369a4..8d8b39909e 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -1081,7 +1081,9 @@  if [is_elf_format] {
 
     if { [istarget "mips64*-*-openbsd*"] } {
 	set reloc_format mips64
-    } elseif { [istarget "arm-*"] \
+    } elseif { ([istarget "arm*-*"] \
+		&& ![istarget "*-*-vxworks"] \
+		&& ![istarget "*-*-windiss"]) \
 	       || [istarget "d10v-*"] \
 	       || [istarget "dlx-*"] \
 	       || [istarget "i*86-*"] \
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index e6d9f40f16..9fc9a18dae 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -26,32 +26,35 @@  proc is_elf_format {} {
     if { [istarget m68hc1*-*] || [istarget xgate-*] } {
 	return 1;
     }
+# vxworks (and windiss) excluded due to number of ELF tests that need
+# modifying to pass on those targets.
+#	 && ![istarget *-*-vxworks*]
+#	 && ![istarget *-*-windiss*]
 
-    if {    ![istarget *-*-eabi*]
-	 && ![istarget *-*-elf*]
-	 && ![istarget *-*-freebsd*]
+    if {    ![istarget *-*-chorus*]
+	 && ![istarget *-*-cloudabi*]
+	 && ![istarget *-*-eabi*]
+	 && ![istarget *-*-*elf*]
+	 && ![istarget *-*-*freebsd*]
+	 && ![istarget *-*-fuchsia*]
 	 && ![istarget *-*-gnu*]
 	 && ![istarget *-*-irix5*]
 	 && ![istarget *-*-irix6*]
-	 && ![istarget *-*-linux*]
+	 && ![istarget *-*-kaos*]
+	 && ![istarget *-*-*linux*]
 	 && ![istarget *-*-lynxos*]
 	 && ![istarget *-*-nacl*]
 	 && ![istarget *-*-netbsd*]
+	 && ![istarget *-*-nto*]
 	 && ![istarget *-*-openbsd*]
 	 && ![istarget *-*-rtems*]
 	 && ![istarget *-*-solaris2*]
-	 && ![istarget *-*-symbianelf*]
 	 && ![istarget *-*-sysv4*]
 	 && ![istarget *-*-unixware*]
 	 && ![istarget *-*-wasm32*]
-	 && ![istarget arm*-*-uclinuxfdpiceabi]
 	 && ![istarget avr-*-*]
-	 && ![istarget bfin-*-uclinux]
-	 && ![istarget frv-*-uclinux*]
 	 && ![istarget hppa*64*-*-hpux*]
-	 && ![istarget ia64-*-hpux*]
-	 && ![istarget sh*-*-uclinux*]
-	 && ![istarget tic6x*-*-uclinux*] } {
+	 && ![istarget ia64-*-hpux*] } {
 	return 0
     }