* binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.

This commit is contained in:
Alan Modra 2001-11-15 12:51:42 +00:00
parent c56feb2b8c
commit 7dc9bd67ad
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-11-15 Alan Modra <amodra@bigpond.net.au>
* binutils-all/objcopy.exp: Allow '? main', to suit powerpc64.
2001-11-14 Geoffrey Keating <geoffk@redhat.com>
* binutils-all/readelf.exp: powerpc-*-eabi* is an ELF target.

View File

@ -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