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:
@ -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__ */
|
||||
|
||||
|
Reference in New Issue
Block a user