gold: Update ver_test_pr16504.sh
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 1 May 2020 16:05:01 +0000 (09:05 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 1 May 2020 16:05:21 +0000 (09:05 -0700)
commit df3a023bd614133fe69afb02cd0e8f3e590a36a9
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Jul 23 17:54:42 2019 +0930

    SHF_GNU_MBIND requires ELFOSABI_GNU

changed readelf to print IFUNC only for ELFOSABI_GNU.  Since

$ readelf -h ver_test_pr16504.so
...
 OS/ABI:                            UNIX - System V
...

we get

$ readelf -sW ver_test_pr16504.so
...
     3: 0000000000000378    13 <OS specific>: 10 GLOBAL DEFAULT    9 foo@@VER1
...

Update ver_test_pr16504.sh to also accept "<OS specific>: 10".

* testsuite/ver_test_pr16504.sh: Updated.

gold/ChangeLog
gold/testsuite/ver_test_pr16504.sh

index c1cee528a2e5328342468db7613050c081ee39e2..7bc3893f3496bd6b5b6c2014141220a83fd9f093 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ver_test_pr16504.sh: Updated.
+
 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gold/25872
index 90574149e0ca6f6b5c6b659e56fb5701d35695b9..9def5a525ec975bb6ad51208afdc4a4e7b14308e 100755 (executable)
@@ -24,7 +24,7 @@
 
 check()
 {
-    if ! grep -q "$2" "$1"
+    if ! egrep -q "$2" "$1"
     then
        echo "Did not find expected symbol in $1:"
        echo "   $2"
@@ -36,6 +36,6 @@ check()
 }
 
 check ver_test_pr16504.stdout " FUNC .* UND  *foo@VER2"
-check ver_test_pr16504.stdout " IFUNC .* foo@@VER1"
+check ver_test_pr16504.stdout " (IFUNC|<OS specific>: 10) .* foo@@VER1"
 
 exit 0
This page took 0.025727 seconds and 4 git commands to generate.