about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-04-04 21:43:20 -0400
committerRich Felker <dalias@aerifal.cx>2014-04-04 21:43:20 -0400
commit561e0a0968f13b6d6c2b092501e210728e236fd7 (patch)
tree6cd0bea5c6f863612382f7f00a3ef6e1cb91c686 /src
parentb9b2db2f374bce907fa5015c9cf63205054f2356 (diff)
downloadmusl-561e0a0968f13b6d6c2b092501e210728e236fd7.tar.gz
musl-561e0a0968f13b6d6c2b092501e210728e236fd7.tar.xz
musl-561e0a0968f13b6d6c2b092501e210728e236fd7.zip
remove cruft left behind when lazy thread pointer init was removed
the function itself was static, but the weak alias provided an
externally visible reference and thus prevented the dead code from
being omitted from the output. so this change actually reduces bloat
in mandatory static-linked code.
Diffstat (limited to 'src')
-rw-r--r--src/env/__init_tls.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/env/__init_tls.c b/src/env/__init_tls.c
index 8ac0036b..c80f0528 100644
--- a/src/env/__init_tls.c
+++ b/src/env/__init_tls.c
@@ -64,14 +64,6 @@ void *__tls_get_addr(size_t *v)
 	return (char *)__pthread_self()->dtv[1]+v[1];
 }
 
-static void *simple(void *p)
-{
-	*(void **)p = p;
-	return __set_thread_area(TP_ADJ(p)) ? 0 : p;
-}
-
-weak_alias(simple, __install_initial_tls);
-
 void *__mmap(void *, size_t, int, int, int, off_t);
 
 #if ULONG_MAX == 0xffffffff