summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-11-12 16:13:52 -0500
committerRich Felker <dalias@aerifal.cx>2015-11-12 16:13:52 -0500
commit9e0a317d8c699278c9c8e2a829744ea098548416 (patch)
tree0ee7fdd6f198c5022e813dbd0dc0bf1672df7f16 /src/internal
parentd56460c939c94a6c547abe8238f442b8de10bfbd (diff)
downloadmusl-9e0a317d8c699278c9c8e2a829744ea098548416.tar.gz
musl-9e0a317d8c699278c9c8e2a829744ea098548416.tar.bz2
musl-9e0a317d8c699278c9c8e2a829744ea098548416.tar.xz
musl-9e0a317d8c699278c9c8e2a829744ea098548416.zip
remove use of SHARED macro in dynamic linker version reporting
also fix visibility of the glue function used.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/version.c5
1 files changed, 1 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