ld/testsuite/ChangeLog:
authorWill Newton <willnewton@sourceware.org>
Wed, 20 Mar 2013 12:46:27 +0000 (12:46 +0000)
committerWill Newton <willnewton@sourceware.org>
Wed, 20 Mar 2013 12:46:27 +0000 (12:46 +0000)
2013-03-20  Will Newton  <will.newton@linaro.org>

        * ld-elfvers/vers.exp (objdump_symstuff): Sort objdump output
based on the symbol name rather than address.
* ld-elfvers/vers1.sym: Reorder contents to match changes to vers.exp.
* ld-elfvers/vers15.sym: Likewise.
* ld-elfvers/vers18.sym: Likewise.
* ld-elfvers/vers21.sym: Likewise.
* ld-elfvers/vers9.sym: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-elfvers/vers.exp
ld/testsuite/ld-elfvers/vers1.sym
ld/testsuite/ld-elfvers/vers15.sym
ld/testsuite/ld-elfvers/vers18.sym
ld/testsuite/ld-elfvers/vers21.sym
ld/testsuite/ld-elfvers/vers9.sym

index 3dfdfa29c202148ff05a5a7af96d030672737733..7347c9331a35b9566a6b765c8f66f8d03165f98b 100644 (file)
@@ -1,3 +1,13 @@
+2013-03-20  Will Newton  <will.newton@linaro.org>
+
+        * ld-elfvers/vers.exp (objdump_symstuff): Sort objdump output
+       based on the symbol name rather than address.
+       * ld-elfvers/vers1.sym: Reorder contents to match changes to vers.exp.
+       * ld-elfvers/vers15.sym: Likewise.
+       * ld-elfvers/vers18.sym: Likewise.
+       * ld-elfvers/vers21.sym: Likewise.
+       * ld-elfvers/vers9.sym: Likewise.
+
 2013-03-20  Alan Modra  <amodra@gmail.com>
 
        * ld-elf/rel.c, ld-elf/relmain.c, ld-elf/relmain.out: New test.
index 6051f71f7806861e36a3629d5d67168d993fdbf9..d1eedb76d571151c322e5ac28820fe53467bd3cb 100644 (file)
@@ -246,9 +246,9 @@ proc objdump_symstuff { objdump object expectfile } {
 
     if ![info exists SOBJDUMP_FLAGS] { set SOBJDUMP_FLAGS "" }
 
-    verbose -log "$objdump $SOBJDUMP_FLAGS $object | grep \@ | sort  > $tmpdir/objdump.out"
+    verbose -log "$objdump $SOBJDUMP_FLAGS $object | grep \@ | sort -k 6  > $tmpdir/objdump.out"
 
-    catch "exec $objdump $SOBJDUMP_FLAGS $object | grep \@ | sort  > $tmpdir/objdump.out" exec_output
+    catch "exec $objdump $SOBJDUMP_FLAGS $object | grep \@ | sort -k 6 > $tmpdir/objdump.out" exec_output
     set exec_output [prune_warnings $exec_output]
     if [string match "" $exec_output] then {
 
index f2bb9db2a4eaace89066c22fd6e7d71d481214b6..0196109c96cb87c7410f91dfa6d39e8ebddd2469 100644 (file)
@@ -1,4 +1,4 @@
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@
+[0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@@VERS_2\.0
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@VERS_1\.1
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@VERS_1\.2
-[0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@@VERS_2\.0
index a642c9dbabcec6f9610383ed39a3ee8c44698d35..fe56a2419b5f5970259ee0ba4121a4328a4255c2 100644 (file)
@@ -1,3 +1,3 @@
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@
-[0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@VERS_1\.1
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@@VERS_1\.2
+[0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@VERS_1\.1
index 0b1183ccfd888888ed13d127ecd34325b2402f3e..62890d7ad512760beffa25ef706ac3eef60d2380 100644 (file)
@@ -1,4 +1,4 @@
 [0-9a-f]+ +w +F \.(text|opd)   [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@
+[0-9a-f]+ +w +F \.(text|opd)   [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@@VERS_2\.0
 [0-9a-f]+ +w +F \.(text|opd)   [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@VERS_1\.1
 [0-9a-f]+ +w +F \.(text|opd)   [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@VERS_1\.2
-[0-9a-f]+ +w +F \.(text|opd)   [0-9a-f]+ (0x[0-9a-f]+ )?_?show_foo@@VERS_2\.0
index e2b2038e321cda4ea797965dc3006efbb2382102..271ca797e899a8631216d952f397db23ec7e6e4c 100644 (file)
@@ -1,3 +1,3 @@
-[0-9a-f]+[     ]+g[    ]+O[    ]+\.s?data[     ]+[0-9a-f]+ (0x[0-9a-f]+ )?_?foobar@VERS\.0
 [0-9a-f]+[     ]+w[    ]+F[    ]+\.(text|opd)[         ]+[0-9a-f]+ (0x[0-9a-f]+ )?_?bar@VERS\.0
 [0-9a-f]+[     ]+g[    ]+F[    ]+\.(text|opd)[         ]+[0-9a-f]+ (0x[0-9a-f]+ )?_?foo@VERS\.0
+[0-9a-f]+[     ]+g[    ]+O[    ]+\.s?data[     ]+[0-9a-f]+ (0x[0-9a-f]+ )?_?foobar@VERS\.0
index be0e6ddb2003d16beb1d99976ce2e7f23e0448fb..2d46c47c61e5c9f12c0f20b78298dd856b51b7fc 100644 (file)
@@ -1,4 +1,4 @@
 0+ *F? *\*UND\*        0+ _?foo@VERS_1\.2
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?foo@
-[0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?foo@VERS_1\.1
 [0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?foo@@VERS_1\.2
+[0-9a-f]+ g +F \.(text|opd)    [0-9a-f]+ (0x[0-9a-f]+ )?_?foo@VERS_1\.1