aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-03-30 09:54:15 +0000
committerJakub Jelinek <jakub@redhat.com>2004-03-30 09:54:15 +0000
commitadacfc818440c75724a00ed3abf50319340369cc (patch)
treedf851c5e63ff8c7eaf8c094f6afeca37d1b7ffbf /binutils
parent0a159ef8da2d0d84cea5fb6b923f1c87a5f25af7 (diff)
downloadgdb-adacfc818440c75724a00ed3abf50319340369cc.zip
gdb-adacfc818440c75724a00ed3abf50319340369cc.tar.gz
gdb-adacfc818440c75724a00ed3abf50319340369cc.tar.bz2
* binutils-all/objcopy.exp: Accept main as a data symbol as well.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/testsuite/ChangeLog4
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 6c8de84..8c4665e 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-30 Jakub Jelinek <jakub@redhat.com>
+
+ * binutils-all/objcopy.exp: Accept main as a data symbol as well.
+
2004-02-27 Andreas Schwab <schwab@suse.de>
* binutils-all/ar.exp (argument_parsing): New test.
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index c6a2d53..e84868b 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -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
}