[binutils-gdb] Run objcopy --update-section test only on ELF targets

Alan Modra amodra@sourceware.org
Wed Mar 11 07:33:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=50a0d119891f6128b10e8e95074349cc3cfe2070

commit 50a0d119891f6128b10e8e95074349cc3cfe2070
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Mar 11 17:49:42 2015 +1030

    Run objcopy --update-section test only on ELF targets
    
    	* binutils-all/update-section.exp: Only run on ELF targets.

Diff:
---
 binutils/testsuite/ChangeLog                       | 4 ++++
 binutils/testsuite/binutils-all/update-section.exp | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 471cc15..0f33df9 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -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.
diff --git a/binutils/testsuite/binutils-all/update-section.exp b/binutils/testsuite/binutils-all/update-section.exp
index 6a74302..eceb5f1 100644
--- a/binutils/testsuite/binutils-all/update-section.exp
+++ b/binutils/testsuite/binutils-all/update-section.exp
@@ -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} {



More information about the Binutils-cvs mailing list