summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-05-06 15:55:09 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-05-06 15:55:09 +0000
commit08d5f1b40ee1aa6487b3a5d114f76274257455a3 (patch)
treef82c6c33cf5cbe5c9c798c9713e6c7b46a6a9e2d /ld/testsuite/ld-elfvers/vers.exp
parentdaea6f0bf5770796558c5000ab973afd4e8b505d (diff)
downloadbinutils-gdb-08d5f1b40ee1aa6487b3a5d114f76274257455a3.tar.gz
2003-05-06 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp (objdump_versionstuff): Support comment in expected version file. * ld-elfvers/vers25b.c: Add a line of comment. * ld-elfvers/vers25b.dsym: Likwise. * ld-elfvers/vers25b.ver: Likwise. * ld-elfvers/vers26b.dsym: Likwise. * ld-elfvers/vers26b.ver: Likwise. * ld-elfvers/vers27b.dsym: Likwise. * ld-elfvers/vers27b.ver: Likwise. * ld-elfvers/vers27c.c: Likwise. * ld-elfvers/vers27c.dsym: Likwise. * ld-elfvers/vers27c.ver: Likwise.
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers.exp')
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index a26927e6447..c28733ef26f 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -457,7 +457,11 @@ proc objdump_versionstuff { objdump object expectfile } {
set f1 [open $tmpdir/objdump.out r]
set f2 [open $expectfile r]
- gets $f2 l2
+ while { [gets $f2 l2] != -1 } {
+ if { ![regexp "^#.*$" $l2] } then {
+ break
+ }
+ }
while { [gets $f1 l1] != -1 } {
if { [string match $l2 $l1] } then {
if { [gets $f2 l2] == -1 } then {