summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-12-25 21:51:11 -0500
committerRich Felker <dalias@aerifal.cx>2012-12-25 21:51:11 -0500
commite172c7b4df9a33e3f090e347eebd5426b94e6fee (patch)
tree817a4266a64045a2f8c15233c1bcd5b588cbd793 /src
parentd12f2ed282745db172cbb37b18717ad0b8e3c534 (diff)
downloadmusl-e172c7b4df9a33e3f090e347eebd5426b94e6fee.tar.gz
musl-e172c7b4df9a33e3f090e347eebd5426b94e6fee.tar.bz2
musl-e172c7b4df9a33e3f090e347eebd5426b94e6fee.tar.xz
musl-e172c7b4df9a33e3f090e347eebd5426b94e6fee.zip
fix reference to libc struct in static tls init code
libc is the macro, __libc is the internal symbol, but under some configurations on old/broken compilers, the symbol might not actually exist and the libc macro might instead use __libc_loc() to obtain access to the object.
Diffstat (limited to 'src')
-rw-r--r--src/env/__init_tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env/__init_tls.c b/src/env/__init_tls.c
index 3a1b1f56..eb2a6e4a 100644
--- a/src/env/__init_tls.c
+++ b/src/env/__init_tls.c
@@ -23,7 +23,7 @@ void *__copy_tls(unsigned char *mem)
td = (pthread_t)mem;
mem += sizeof(struct pthread);
#else
- mem += __libc.tls_size - sizeof(struct pthread);
+ mem += libc.tls_size - sizeof(struct pthread);
mem -= (uintptr_t)mem & (align-1);
td = (pthread_t)mem;
td->dtv = dtv;