[committed] libstdc++: Fix symbol versioning for Solaris 11.3 [PR103407]

Jonathan Wakely jwakely@redhat.com
Fri Mar 18 12:21:11 GMT 2022

On Fri, 18 Mar 2022 at 11:49, Rainer Orth wrote:
> Hi Jonathan,
> > Tested x86_64-linux and sparc-sun-solaris2.11 (but 11.3 only).
> >
> > Pushed to trunk.
> >
> > Rainer, this should allow you to continue omitting the
> > _ZSt10from_charsPKcS0_R[def]St12chars_format symbols from the baseline,
> > without the current FAIL. Please check on your other Solaris targets.
> I've run bootstraps on i386-pc-solaris2.11 (Solaris 11.3 and 11.4) and
> sparc-sun-solaris2.11 (Solaris 11.4) last night: the abi_check failures
> are gone everywhere.


I did some very brief testing and it seemed like a program linked to
the Solaris 11.3 libstdc++.so.6.0.30 (with from_chars@GLIBCXX_3.4.30)
can still run against libstdc++.so.6.0.30 with
from_chars@GLIBCXX_3.4.29 (which should match what you get on Solaris
11.4 if I correctly fiddled with the versioning). So I don't
understand how the Solaris runtime linker handles symbol versions, but
it seems like there's no backwards compatibility problem for the
Solaris 11.4 build of libstdc++.so.6.0.30.

More information about the Gcc-patches mailing list