]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/rtld.c
elf: Introduce <dl-call_tls_init_tp.h> and call_tls_init_tp (bug 29249)
authorFlorian Weimer <fweimer@redhat.com>
Thu, 3 Nov 2022 16:28:03 +0000 (17:28 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 3 Nov 2022 16:28:03 +0000 (17:28 +0100)
commit1f34a2328890aa192141f96449d25b77f666bf47
tree283ca2a4b46cf069da45f40663e779003064bcdc
parentfb6ee7ba8122330ac819556a42cc56db07d9da76
elf: Introduce <dl-call_tls_init_tp.h> and call_tls_init_tp (bug 29249)

This makes it more likely that the compiler can compute the strlen
argument in _startup_fatal at compile time, which is required to
avoid a dependency on strlen this early during process startup.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
25 files changed:
csu/libc-tls.c
elf/rtld.c
sysdeps/aarch64/nptl/tls.h
sysdeps/alpha/nptl/tls.h
sysdeps/arc/nptl/tls.h
sysdeps/csky/nptl/tls.h
sysdeps/generic/dl-call_tls_init_tp.h [new file with mode: 0644]
sysdeps/generic/startup.h
sysdeps/hppa/nptl/tls.h
sysdeps/i386/nptl/tls.h
sysdeps/ia64/nptl/tls.h
sysdeps/loongarch/nptl/tls.h
sysdeps/m68k/nptl/tls.h
sysdeps/mach/hurd/i386/tls.h
sysdeps/microblaze/nptl/tls.h
sysdeps/mips/nptl/tls.h
sysdeps/nios2/nptl/tls.h
sysdeps/or1k/nptl/tls.h
sysdeps/powerpc/nptl/tls.h
sysdeps/riscv/nptl/tls.h
sysdeps/s390/nptl/tls.h
sysdeps/sh/nptl/tls.h
sysdeps/sparc/nptl/tls.h
sysdeps/unix/sysv/linux/arm/tls.h
sysdeps/x86_64/nptl/tls.h