From: Rich Felker Date: Thu, 23 Apr 2015 21:37:06 +0000 (-0400) Subject: remove dead store from static __init_tls X-Git-Tag: v1.1.9~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23129ab8d5f86927aad4f67c1820362acce09c45;p=oweals%2Fmusl.git remove dead store from static __init_tls commit dab441aea240f3b7c18a26d2ef51979ea36c301c, 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. --- diff --git a/src/env/__init_tls.c b/src/env/__init_tls.c index a5074fba..b4df2ba5 100644 --- a/src/env/__init_tls.c +++ b/src/env/__init_tls.c @@ -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)