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:
Rich Felker 2015-04-23 17:37:06 -04:00
parent 5f51d52915
commit 23129ab8d5

View File

@ -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)