summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-15 07:48:59 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-15 07:48:59 +0000
commit8409ef9c33e98c76ce593dd0248748a189281a2e (patch)
tree96593fe22e2eb780809a62abe5e71b23b2808261
parent6202f89224beb115f1da40cddaa11f0749014bef (diff)
downloadgcc-8409ef9c33e98c76ce593dd0248748a189281a2e.tar.gz
Ignore elfdump warnings in scripts/extract_symvers.pl
* scripts/extract_symvers.pl: Ignore elfdump error output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222117 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/scripts/extract_symvers.pl5
2 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 22b434ea5be..22113d597da 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * scripts/extract_symvers.pl: Ignore elfdump error output.
+
2015-04-14 Marc Glisse <marc.glisse@inria.fr>
PR libstdc++/61347
diff --git a/libstdc++-v3/scripts/extract_symvers.pl b/libstdc++-v3/scripts/extract_symvers.pl
index dadf1802ae1..9d8be3a2c7d 100644
--- a/libstdc++-v3/scripts/extract_symvers.pl
+++ b/libstdc++-v3/scripts/extract_symvers.pl
@@ -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;