]> granicus.if.org Git - musl/commitdiff
remove use of SHARED macro in dynamic linker version reporting
authorRich Felker <dalias@aerifal.cx>
Thu, 12 Nov 2015 21:13:52 +0000 (16:13 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 12 Nov 2015 21:13:52 +0000 (16:13 -0500)
also fix visibility of the glue function used.

src/internal/version.c
src/ldso/dynlink.c

index 16554ba2266637ca0b3b7bcb200bc28c4cc9cf2e..dc044ec4129fb1c870ce30cb91b96a35a3a3df93 100644 (file)
@@ -1,12 +1,9 @@
-#ifdef SHARED
-
 #include "version.h"
 
 static const char version[] = VERSION;
 
+__attribute__((__visibility__("hidden")))
 const char *__libc_get_version()
 {
        return version;
 }
-
-#endif
index 0326baf014ca7d36341fa95edc9ff84c881fb46f..2d24c78d56b8efd6a5a481bef4593384fc8ef1aa 100644 (file)
@@ -101,6 +101,7 @@ int __init_tp(void *);
 void __init_libc(char **, char *);
 void *__copy_tls(unsigned char *);
 
+__attribute__((__visibility__("hidden")))
 const char *__libc_get_version(void);
 
 static struct builtin_tls {