This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
tweak objcopy.exp
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 15 Nov 2001 23:22:53 +1030
- Subject: tweak objcopy.exp
The strip test was failing on powerpc64-linux because "main" points
at the opd entry, while ".main" is the code symbol.
binutils/testsuite/ChangeLog
* binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.
--
Alan Modra
Index: binutils/testsuite/binutils-all/objcopy.exp
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/objcopy.exp,v
retrieving revision 1.9
diff -u -p -r1.9 objcopy.exp
--- objcopy.exp 2001/05/25 07:21:00 1.9
+++ objcopy.exp 2001/11/15 12:04:22
@@ -383,7 +383,7 @@ proc strip_test_with_saving_a_symbol { }
}
set exec_output [binutils_run $NM "$NMFLAGS $objfile"]
- if {![regexp {^([0-9a-fA-F]+)?[ ]+T main} $exec_output] \
+ if {![regexp {^([0-9a-fA-F]+)?[ ]+[T\?] main} $exec_output] \
&& ![regexp {^([0-9a-fA-F]+)?[ ]+T _main} $exec_output]} {
fail $test
return