[libphobos] Work around Solaris ld bug linking __tls_get_addr on 64-bit x86

Iain Buclaw ibuclaw@gdcproject.org
Sat Apr 13 18:48:00 GMT 2019


On Tue, 9 Apr 2019 at 21:36, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>
> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
>
> > Here's the patch I mentioned in
> >
> >       https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01661.html
> >
> > to work around an amd64 Solaris ld bug.  I'm just posting it for
> > reference now: until it's clear if a fix will make it into Solaris 11.5
> > or not, there's no point in applying it yet.
> >
> > Still, review comments are appreciated.
>
> With the revised patch for non-dlpi_tls_modid versions of Solaris
>
>         https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00354.html
>
> __tls_get_addr will always be called and thus this workaround is needed
> unconditionally, even should the ld bug be fixed in Solaris 11.5.
>
> This revision adjusts the patch accordingly and was tested together with
> the other one on Solaris 11.[345]/x86.
>
> Ok for mainline?
>

OK

-- 
Iain



More information about the Gcc-patches mailing list