diff options
Diffstat (limited to 'elf/enbl-secure.c')
-rw-r--r-- | elf/enbl-secure.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/enbl-secure.c b/elf/enbl-secure.c index 5dcf649626..9e47526bd3 100644 --- a/elf/enbl-secure.c +++ b/elf/enbl-secure.c @@ -19,6 +19,10 @@ /* This file is used in the static libc. For the shared library, dl-sysdep.c defines and initializes __libc_enable_secure. */ +/* Mark symbols hidden in static PIE for early self relocation to work. */ +#if BUILD_PIE_DEFAULT +# pragma GCC visibility push(hidden) +#endif #include <startup.h> #include <libc-internal.h> |