[PATCH] x86-64: Add GLIBC_ABI_GNU2_TLS [BZ #33129]
Florian Weimer
fweimer@redhat.com
Mon Jul 7 13:12:58 GMT 2025
* H. J. Lu:
> Programs and shared libraries compiled with -mtls-dialect=gnu2 may fail
> silently at run-time against glibc without the GNU2 TLS run-time fix
> for:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=31372
>
> Add GLIBC_ABI_GNU2_TLS version to indicate that glibc has the working
> GNU2 TLS run-time. Linker will add the GLIBC_ABI_GNU2_TLS version to
> binaries which depend on GNU2 TLS run-time:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=33130
>
> so that programs and shared libraries compiled with -mtls-dialect=gnu2
> will have the glibc GLIBC_ABI_GNU2_TLS version dependency added by the
> new linker. They will fail to load and run at run-time against libc.so
> without the GLIBC_ABI_GNU2_TLS version, instead of may fail silently.
>
> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
I started a cross-list discussion:
Switching x86-64 to GNU2 TLS descriptors
<https://inbox.sourceware.org/gcc/lhuo6twflay.fsf@oldenburg.str.redhat.com/>
Thanks,
Florian
More information about the Libc-alpha
mailing list