[v3] Ignore elfdump warnings in scripts/extract_symvers.pl

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Apr 14 12:59:00 GMT 2015


The libstdc++-v3 abi_check test is FAILing on Solaris 11 with gld.  It
turns out this happens because a elfdump warning (printed to stderr) is
mixed with regular elfdump output.  In the case at hand, elfdump warns

 .gnu.version_r: zero sh_entsize information, expected 0x1
 .gnu.version_d: zero sh_entsize information, expected 0x1

but obviously trying to parse warnings as regular output is doomed to
fail.  While it has been determined that those concrete warnings are
bogus and will be removed in the future, the general problem remains.
The following patch fixes this by just ignoring elfdump error output.

Bootstrapped without regressions on i386-pc-solaris2.1[01] and
sparc-sun-solaris2.1[01] (with as/ld, gas/gld) on both mainline and
gcc-5 branch.  Ok for mainline and gcc-5 branch?  I suppose the patch is
safe enough even at this point since it only affects a solaris specific
file.

	Rainer


2015-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-v3-extract_symvers-elfdump.patch
Type: text/x-patch
Size: 812 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150414/c0652af6/attachment.bin>
-------------- next part --------------

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Libstdc++ mailing list