summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-14 10:42:44 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-14 10:42:44 -0400
commitbc081f628b51337b525ca2d53aeff1b971f092f5 (patch)
treec09ccb284057973bb978adbdfecbfcd2d655a227 /src/ldso/dynlink.c
parentda7ccf822c2a7f0413868b8d99029907f1d61a41 (diff)
downloadmusl-bc081f628b51337b525ca2d53aeff1b971f092f5.tar.gz
fix inconsistent visibility for internal __tls_get_new function
at the point of call it was declared hidden, but the definition was not hidden. for some toolchains this inconsistency produced textrels without ld-time binding.
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 46183ce7..0151f74d 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -1051,6 +1051,7 @@ void *__copy_tls(unsigned char *mem)
return td;
}
+__attribute__((__visibility__("hidden")))
void *__tls_get_new(size_t *v)
{
pthread_t self = __pthread_self();