Run objcopy --update-section test only on ELF targets
authorAlan Modra <amodra@gmail.com>
Wed, 11 Mar 2015 07:19:42 +0000 (17:49 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Mar 2015 07:29:29 +0000 (17:59 +1030)
* binutils-all/update-section.exp: Only run on ELF targets.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/update-section.exp

index 471cc15477268969af1bf3f4273b8afb0fe06b8e..0f33df94ab52262596af91d770712b899bb0e84a 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-11  Alan Modra  <amodra@gmail.com>
+
+       * binutils-all/update-section.exp: Only run on ELF targets.
+
 2015-03-03  Jiong Wang  <jiong.wang@arm.com>
 
        * binutils-all/arm/rvct_symbol.s: New testcase.
index 6a743022396fa6d286c7ce9f6a4bb1c6844f7b0f..eceb5f1e3159f431d65555fa7c775b3abbdd20be 100644 (file)
@@ -18,6 +18,11 @@ if { [is_remote host] } then {
     return
 }
 
+# These tests use ELF .section directives
+if ![is_elf_format] {
+    return
+}
+
 send_user "Version [binutil_version $OBJCOPY]"
 
 proc do_assemble {srcfile} {