1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

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>
This commit is contained in:
Florian Weimer
2022-11-03 17:28:03 +01:00
parent fb6ee7ba81
commit 1f34a23288
25 changed files with 68 additions and 51 deletions

View File

@ -33,8 +33,7 @@
# define TLS_INIT_TP(tcbp) \
({ long int result_var; \
result_var = INTERNAL_SYSCALL_CALL (set_tls, (tcbp)); \
INTERNAL_SYSCALL_ERROR_P (result_var) \
? "unknown error" : NULL; })
!INTERNAL_SYSCALL_ERROR_P (result_var); })
#endif /* __ASSEMBLER__ */