Ignore elfdump warnings in scripts/extract_symvers.pl

* scripts/extract_symvers.pl: Ignore elfdump error output.

From-SVN: r222117
This commit is contained in:
Rainer Orth
2015-04-15 07:48:59 +00:00
committed by Rainer Orth
parent e4614c187b
commit eea6e98958
2 changed files with 8 additions and 1 deletions

View File

@@ -82,7 +82,10 @@ while (<PVS>) {
close PVS or die "pvs error";
# Only look at .dynsym table, like readelf in extract_symvers.
open ELFDUMP, "/usr/ccs/bin/elfdump -s -N .dynsym $lib |" or die $!;
# Ignore error output to avoid getting confused by
# .gnu.version_r: zero sh_entsize information, expected 0x1
# warning with Solaris 11 elfdump on gld-produced shared objects.
open ELFDUMP, "/usr/ccs/bin/elfdump -s -N .dynsym $lib 2>/dev/null |" or die $!;
while (<ELFDUMP>) {
chomp;