PATCH: Fix 64-bit Solaris 2/x86 IE TLS code sequence

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Mar 9 16:31:00 GMT 2010


"H.J. Lu" <hjl.tools@gmail.com> writes:

>> Btw., in the meantime I've noticed that the code sequence demanded in
>> the Solaris Linker and Libraries Guide is not in any way Sun specific,
>> but actually still in the current version of the `ELF Handling for
>> Thread-Local Storage' specification:
>>
>>        http://people.redhat.com/drepper/tls.pdf
>>
>> So, unless there's an updated specification somewhere, the fix might be
>> applied more generally (which currently already happens; there's no
>> TARGET_SUN_TLS predicate anywhere), even though GNU ld can handle the
>> alternative code sequences produced by GCC just fine.
>
> What is the TLS problem on Linux? Do you have a testcase? Unless
> there is a testcase, I prefer you not to change TLS for Linux.

There is none, just the fact that the code emitted by GCC on x86 doesn't
follow the published TLS spec.  Is there any update available beyond the
Drepper spec referenced above?  If so, I could get the Sun linker guys
to update their linker; if there's no spec, they would be flying blind.
Even so, GCC would have to be fixed to follow the published spec on
Solaris 2, since there are versions of ld in the field that follow the
spec and cannot copy with the code gcc generates.

	Rainer

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



More information about the Gcc-patches mailing list