[PATCH] Use TLS initial-exec model for __libc_tsd_* thread variables

Stefan Liebler stli@linux.ibm.com
Mon Aug 4 14:07:54 GMT 2025


On 8/4/25 12:01, Florian Weimer wrote:
> * Jens Remus:
> 
>> Commit 10a66a8e421b ("Remove <libc-tsd.h>") removed the TLS initial-exec
>> (IE) model attribute from the __libc_tsd_* thread variable declarations
>> and definitions.  Commit a894f04d8776 ("Optimize __libc_tsd_* thread
>> variable access") restored it on declarations.
>>
>> Restore the TLS initial-exec model attribute on __libc_tsd_* thread
>> variable definitions.
>>
>> This resolves test tst-locale1 failure on s390 32-bit, when using a
>> GNU linker without the fix from GNU binutils commit aefebe82dc89
>> ("IBM zSystems: Fix offset relative to static TLS").
>>
>> Signed-off-by: Jens Remus <jremus@linux.ibm.com>
> 
> Why Signed-off-by:?  Isn't this covered by the IBM copyright assignment?
Yes, Jens has the IBM copyright assignment which covers also glibc. I
assume Signed-off-by is in his default settings (he is now on vacation).
> 
> Who is going to commit this?
I would commit the patch for Jens.

> 
> Thanks,
> Florian
> 

@Florian:
Have you seen Jens latest message:
https://sourceware.org/pipermail/libc-alpha/2025-August/169082.html
Perhaps you can advice how to proceed at all.

Thanks,
Stefan


More information about the Libc-alpha mailing list