about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/internal/version.c5
-rw-r--r--src/ldso/dynlink.c1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/internal/version.c b/src/internal/version.c
index 16554ba2..dc044ec4 100644
--- a/src/internal/version.c
+++ b/src/internal/version.c
@@ -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
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 0326baf0..2d24c78d 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -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 {