Files
glibc/include
Adhemerval Zanella b539947e15 elf: Remove dead l_need_tls_init static-TLS init path
Since af34b1376a ("elf: Initialize static TLS before relocation
processing", BZ 34164) dropped the 'defer-if-not-relocated' branch in
_dl_try_allocate_static_tls, nothing sets l_need_tls_init any more.  The
second pass in update_tls_slotinfo, guarded by l_need_tls_init, is
therefore dead: its _dl_update_slotinfo / _dl_init_static_tls calls never
run, and the static TLS image is initialised inline during relocation (IE
model) or lazily on first dynamic-TLS access instead.

Remove the dead loop, the now write-only l_need_tls_init field and its
clear in _dl_allocate_tls_init.  No functional change.

Checked on aarch64-linux-gnu, x86_64-linux-gnu, and i686-linux-gnu.
I also run the elf tests on armv7-a, alpha, loongarch64, mips64le,
powerpc, riscv, and s390x using qemu system.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2026-08-31 15:43:44 -03:00
..
…
2001-03-30 05:34:59 +00:00
2023-05-01 19:33:21 +02:00
2025-09-11 14:46:07 -03:00
2026-02-03 09:28:23 -08:00
2021-06-15 10:42:11 -03:00
…
2004-03-09 10:36:53 +00:00
2017-04-07 07:45:53 -04:00
1999-08-21 00:38:15 +00:00
…
2021-07-22 18:38:04 +05:30
2026-02-02 14:34:25 -03:00
…
2000-08-21 16:02:48 +00:00
2021-06-30 08:43:37 +02:00
2023-10-24 12:30:59 +02:00
2023-05-01 09:08:59 -04:00
2019-05-02 11:42:51 +02:00
…
2023-10-24 12:30:59 +02:00
2026-08-31 15:43:44 -03:00
2019-10-09 17:48:41 -03:00
…
…
…
…
…
1999-10-12 18:17:41 +00:00
2021-06-30 08:43:37 +02:00
2019-11-06 09:20:52 -03:00