* binutils-all/objcopy.exp: Accept main as a data symbol as well.
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / objcopy.exp
index c6a2d530e3eec3c9c0782ca6d79ea2be0af6e5e9..e84868bba31c8627589d796ccef740610dcb1e72 100644 (file)
@@ -613,8 +613,8 @@ proc strip_executable_with_saving_a_symbol { prog flags test } {
        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]} {
+    if {![regexp {^([0-9a-fA-F]+)?[ ]+[TD] main} $exec_output] \
+         && ![regexp {^([0-9a-fA-F]+)?[ ]+[TD] _main} $exec_output]} {
        fail $test
        return
     }
This page took 0.022644 seconds and 4 git commands to generate.