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 16554ba..dc044ec 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 0326baf..2d24c78 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 {