summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-23 17:37:06 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-23 17:37:06 -0400
commit23129ab8d5f86927aad4f67c1820362acce09c45 (patch)
tree4410188131be0e69a6087b7b5d5ff84b7c17cd48 /src
parent5f51d529155429e607c5c51d5d461b0b98e6be52 (diff)
downloadmusl-23129ab8d5f86927aad4f67c1820362acce09c45.tar.gz
musl-23129ab8d5f86927aad4f67c1820362acce09c45.tar.bz2
musl-23129ab8d5f86927aad4f67c1820362acce09c45.tar.xz
musl-23129ab8d5f86927aad4f67c1820362acce09c45.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/env/__init_tls.c2
1 files changed, 0 insertions, 2 deletions
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)