]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/dl-tls_init_tp.c
elf: Introduce __tls_pre_init_tp
authorFlorian Weimer <fweimer@redhat.com>
Mon, 10 May 2021 08:31:41 +0000 (10:31 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 10 May 2021 08:31:41 +0000 (10:31 +0200)
commitd017b0ab5a181dce4145f3a1b3b27e3341abd201
treecfe65201d70b7df83848838256d2c7288dcee67b
parent0df5d8d404fbf6a7802737b0f9d32ab3376cec86
elf: Introduce __tls_pre_init_tp

This is an early variant of __tls_init_tp, primarily for initializing
thread-related elements of _rtld_global/GL.

Some existing initialization code not needed for NPTL is moved into
the generic version of this function.

Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
csu/libc-tls.c
elf/dl-mutex.c
elf/dl-tls_init_tp.c
elf/rtld.c
sysdeps/generic/ldsodefs.h
sysdeps/nptl/dl-tls_init_tp.c