2003-05-06 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 6 May 2003 15:55:09 +0000 (15:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 6 May 2003 15:55:09 +0000 (15:55 +0000)
* 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.

12 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-elfvers/vers.exp
ld/testsuite/ld-elfvers/vers25b.c
ld/testsuite/ld-elfvers/vers25b.dsym
ld/testsuite/ld-elfvers/vers25b.ver
ld/testsuite/ld-elfvers/vers26b.dsym
ld/testsuite/ld-elfvers/vers26b.ver
ld/testsuite/ld-elfvers/vers27b.dsym
ld/testsuite/ld-elfvers/vers27b.ver
ld/testsuite/ld-elfvers/vers27c.c
ld/testsuite/ld-elfvers/vers27c.dsym
ld/testsuite/ld-elfvers/vers27c.ver

index 10d1dddf4036c66d0e6acdc9d5bfe03e218ed5a5..0e79c0f79c6c54e27299479cd1a656d45507c6a4 100644 (file)
@@ -1,3 +1,19 @@
+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.
+
 2003-05-04  H.J. Lu <hjl@gnu.org>
 
        * ld-elfvsb/main.c: Updated.
index a26927e6447093fa58c1a3d2eea7a6e776d8547a..c28733ef26f67f76bd56b03dece77dd2edabe2b6 100644 (file)
@@ -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 {
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b119c695b647d748c45392530772cd17059bc914 100644 (file)
@@ -0,0 +1 @@
+/* Empty file  */
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..71923c33b146abb80da8c86adcb900b5e28f2f90 100644 (file)
@@ -0,0 +1 @@
+# Empty file.
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b119c695b647d748c45392530772cd17059bc914 100644 (file)
@@ -0,0 +1 @@
+/* Empty file  */
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..932b79829cf36acbbe57c8ab0b878d69045968e5 100644 (file)
@@ -0,0 +1 @@
+# Empty file