* binutils-all/objcopy.exp

(strip_executable_with_saving_a_symbol): Prune symbol Main in nm
	output for mmix-knuth-mmixware.
This commit is contained in:
Hans-Peter Nilsson 2002-02-18 09:13:48 +00:00
parent 6ad738c5d9
commit edc45ab901
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
* binutils-all/objcopy.exp
(strip_executable_with_saving_a_symbol): Prune symbol Main in nm
output for mmix-knuth-mmixware.
2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
* binutils-all/readelf.ss-mips: Do not expect an explicit

View file

@ -596,6 +596,15 @@ proc strip_executable_with_saving_a_symbol { prog flags test } {
}
set exec_output [binutils_run $NM "$NMFLAGS ${copyfile}"]
if { [istarget mmix-knuth-mmixware] } {
# Whenever there's a symbol in the mmo format, there's the symbol
# Main, so remove it manually from the expected output for sake of
# this test.
# Using "" not {} to get the \n and \r translated.
regsub "^\[0-9a-fA-F\]+\[ \]+T Main\[\n\r\]+" $exec_output "" exec_output
}
if {![regexp {^[0-9a-fA-F]+ T main} $exec_output] \
&& ![regexp {^[0-9a-fA-F]+ T _main} $exec_output]} {
fail $test