From: Hans-Peter Nilsson Date: Mon, 18 Feb 2002 09:13:48 +0000 (+0000) Subject: * binutils-all/objcopy.exp X-Git-Tag: gprof-pre-ansify-2004-05-26~4898 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=98557bd67d4f9278604736817e3c3c8dc8969c1f;p=pf3gnuchains%2Fpf3gnuchains4x.git * binutils-all/objcopy.exp (strip_executable_with_saving_a_symbol): Prune symbol Main in nm output for mmix-knuth-mmixware. --- diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 59afb23878..7e221cd13f 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-02-17 Hans-Peter Nilsson + + * 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 * binutils-all/readelf.ss-mips: Do not expect an explicit diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 22efb5da0b..470b36974a 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -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