From: Rich Felker Date: Thu, 12 Nov 2015 21:13:52 +0000 (-0500) Subject: remove use of SHARED macro in dynamic linker version reporting X-Git-Tag: v1.1.13~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e0a317d8c699278c9c8e2a829744ea098548416;p=musl remove use of SHARED macro in dynamic linker version reporting also fix visibility of the glue function used. --- 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 {