gold: Update ver_test_pr16504.sh

commit df3a023bd6
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.
This commit is contained in:
H.J. Lu 2020-05-01 09:05:01 -07:00
parent 48bc218262
commit de6d6067f5
2 changed files with 6 additions and 2 deletions

View 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

View File

@ -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