[PATCH] x86: Improve TLS transition error check
H.J. Lu
hjl.tools@gmail.com
Wed Jul 24 06:36:52 GMT 2024
On Wed, Jul 24, 2024, 2:26 PM Jan Beulich <jbeulich@suse.com> wrote:
> On 24.07.2024 05:54, H.J. Lu wrote:
> > Provide detailed TLS transition errors when unsupported instructions are
> > used. Treat R_X86_64_CODE_4_GOTTPOFF and R_X86_64_CODE_6_GOTTPOFF as
> > R_X86_64_GOTTPOFF when performing TLS transition.
>
> General question (the code was like this before, just with less details in
> the diagnostic): Do such failures really need to be errors? What if the
> code is correct all by itself, just that the linker can't do the
> transition?
>
TLS ABI only support some specific code sequences.
See the related GCC bug for an example.
Without the linker error, the GCC bug may go undetected.
> Jan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20240724/e075ac52/attachment.htm>
More information about the Binutils
mailing list