mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 03:33:33 +08:00
Revert "Make libc symbols hidden in static PIE" [BZ #27237]
This reverts commit 2682695e5c
.
Fixes bug 27237.
That commit turned out to be too intrusive affecting crt files, test
system and benchmark files. They should not be affected, but the
build system does not set the MODULE_NAME and LIBC_NONSHARED reliably.
This commit is contained in:
parent
3725ee39db
commit
df359a25ba
@ -434,18 +434,13 @@ for linking")
|
||||
strong_alias(real, name)
|
||||
#endif
|
||||
|
||||
#if defined SHARED || defined LIBC_NONSHARED
|
||||
#if defined SHARED || defined LIBC_NONSHARED \
|
||||
|| (BUILD_PIE_DEFAULT && IS_IN (libc))
|
||||
# define attribute_hidden __attribute__ ((visibility ("hidden")))
|
||||
#else
|
||||
# define attribute_hidden
|
||||
#endif
|
||||
|
||||
/* Mark all symbols hidden in static PIE libc to avoid GOT indirections. */
|
||||
#if BUILD_PIE_DEFAULT && !defined NO_HIDDEN_EXTERN_FUNC_IN_PIE \
|
||||
&& IS_IN (libc) && !defined LIBC_NONSHARED
|
||||
# pragma GCC visibility push(hidden)
|
||||
#endif
|
||||
|
||||
#define attribute_tls_model_ie __attribute__ ((tls_model ("initial-exec")))
|
||||
|
||||
#define attribute_relro __attribute__ ((section (".data.rel.ro")))
|
||||
|
Loading…
Reference in New Issue
Block a user