From 9b95fd0944e4206949e90633c3fed088202810ec Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 5 Sep 2018 12:43:34 -0400 Subject: define and use internal macros for hidden visibility, weak refs this cleans up what had become widespread direct inline use of "GNU C" style attributes directly in the source, and lowers the barrier to increased use of hidden visibility, which will be useful to recovering some of the efficiency lost when the protected visibility hack was dropped in commit dc2f368e565c37728b0d620380b849c3a1ddd78f, especially on archs where the PLT ABI is costly. --- src/thread/__tls_get_addr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/thread/__tls_get_addr.c') diff --git a/src/thread/__tls_get_addr.c b/src/thread/__tls_get_addr.c index 3b6c9b1b..3bc60571 100644 --- a/src/thread/__tls_get_addr.c +++ b/src/thread/__tls_get_addr.c @@ -2,8 +2,7 @@ #include "pthread_impl.h" #include "libc.h" -__attribute__((__visibility__("hidden"))) -void *__tls_get_new(tls_mod_off_t *); +hidden void *__tls_get_new(tls_mod_off_t *); void *__tls_get_addr(tls_mod_off_t *v) { -- cgit 1.4.1