mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-14 01:04:02 +03:00
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.
This commit is contained in:
parent
b9b2db2f37
commit
561e0a0968
8
src/env/__init_tls.c
vendored
8
src/env/__init_tls.c
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user