forked from Imagelibrary/binutils-gdb
* binutils-all/objcopy.exp: Accept main as a data symbol as well.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user