From 23129ab8d5f86927aad4f67c1820362acce09c45 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 23 Apr 2015 17:37:06 -0400 Subject: [PATCH] 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. --- src/env/__init_tls.c | 2 -- 1 file changed, 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) -- 2.25.1