This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]