tweak objcopy.exp
Alan Modra
amodra@bigpond.net.au
Mon Nov 5 16:58:00 GMT 2001
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
More information about the Binutils
mailing list