remove useless visibility application from static-linking-only code
authorRich Felker <dalias@aerifal.cx>
Wed, 22 Apr 2015 06:36:54 +0000 (02:36 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 22 Apr 2015 06:36:54 +0000 (02:36 -0400)
part of the goal here is to eliminate use of the ATTR_LIBC_VISIBILITY
macro outside of libc.h, since it was never intended to be 'public'.

src/env/__init_tls.c
src/env/__reset_tls.c

index 67f140940599abeba445102016bfc24c6e31c4ec..b5bd80d13376704f17bbd1d5d71f99fbae680fd1 100644 (file)
@@ -33,7 +33,7 @@ static struct builtin_tls {
 struct tls_image {
        void *image;
        size_t len, size, align;
-} __static_tls ATTR_LIBC_VISIBILITY;
+} __static_tls;
 
 #define T __static_tls
 
index 28c4405efe4c2e36ef9fa472802a983ea5251abe..bd61f311e7c41b2d4a277d631b46580e55fb5489 100644 (file)
@@ -2,12 +2,11 @@
 
 #include <string.h>
 #include "pthread_impl.h"
-#include "libc.h"
 
 extern struct tls_image {
        void *image;
        size_t len, size, align;
-} __static_tls ATTR_LIBC_VISIBILITY;
+} __static_tls;
 
 #define T __static_tls