]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use TLS initial-exec model for __libc_tsd_CTYPE_* thread variables [BZ #33234] release/2.40/master
authorJens Remus <jremus@linux.ibm.com>
Fri, 25 Jul 2025 13:40:03 +0000 (15:40 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 14 Aug 2025 10:37:30 +0000 (12:37 +0200)
commit1b305e7e53bd850542c9dccfcc17ff31cf605b62
tree44e7b0d6c86ceda3ce7368ee5d912224347565f7
parent434e7e144a3825f910a5051af5f02d2e2198d4d9
Use TLS initial-exec model for __libc_tsd_CTYPE_* thread variables [BZ #33234]

Commit 10a66a8e421b ("Remove <libc-tsd.h>") removed the TLS initial-exec
(IE) model attribute from the __libc_tsd_CTYPE_* 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_CTYPE_* 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").

Reviewed-by: Florian Weimer <fweimer@redhat.com>
(cherry picked from commit e5363e6f460c2d58809bf10fc96d70fd1ef8b5b2)
NEWS
ctype/ctype-info.c