mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 16:23:23 +03:00
remove dead store from static __init_tls
commit dab441aea2
, which made thread
pointer init mandatory for all programs, rendered this store obsolete
by removing the early-return path for static programs with no TLS.
This commit is contained in:
parent
5f51d52915
commit
23129ab8d5
2
src/env/__init_tls.c
vendored
2
src/env/__init_tls.c
vendored
@ -77,8 +77,6 @@ void __init_tls(size_t *aux)
|
||||
size_t base = 0;
|
||||
void *mem;
|
||||
|
||||
libc.tls_size = sizeof(struct pthread);
|
||||
|
||||
for (p=(void *)aux[AT_PHDR],n=aux[AT_PHNUM]; n; n--,p+=aux[AT_PHENT]) {
|
||||
phdr = (void *)p;
|
||||
if (phdr->p_type == PT_PHDR)
|
||||
|
Loading…
Reference in New Issue
Block a user