diff options
author | 2017-10-04 17:18:23 -0700 | |
---|---|---|
committer | 2017-10-04 17:18:42 -0700 | |
commit | ee417882e07277b2a36e7e61e6ef7edd96415b3f (patch) | |
tree | bdd0f60f81b8a631c63275ea083308ad4127f404 /sysdeps/i386/configure.ac | |
parent | Use $(DEFAULT-LDFLAGS-$(@F)) in +link-static-before-libc (diff) | |
download | glibc-ee417882e07277b2a36e7e61e6ef7edd96415b3f.tar.gz glibc-ee417882e07277b2a36e7e61e6ef7edd96415b3f.tar.bz2 glibc-ee417882e07277b2a36e7e61e6ef7edd96415b3f.zip |
Don't use hidden visibility in libc.a with PIE on i386
On i386, when multi-arch is enabled, all external functions must be
called via PIC PLT in PIE, which requires setting up EBX register,
since they may be IFUNC functions.
* config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
* include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
* sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
AC_DEFINE if multi-arch is enabled.
* sysdeps/i386/configure: Regenerated.
Diffstat (limited to 'sysdeps/i386/configure.ac')
-rw-r--r-- | sysdeps/i386/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/i386/configure.ac b/sysdeps/i386/configure.ac index f7766ad2b8..b598b120bc 100644 --- a/sysdeps/i386/configure.ac +++ b/sysdeps/i386/configure.ac @@ -48,3 +48,9 @@ fi dnl It is always possible to access static and hidden symbols in an dnl position independent way. AC_DEFINE(PI_STATIC_AND_HIDDEN) + +dnl When multi-arch is enabled, all external functions must be called +dnl via PIC PLT in PIE, which requires setting up EBX register. +if test x"$multi_arch" != xno; then + AC_DEFINE(NO_HIDDEN_EXTERN_FUNC_IN_PIE) +fi |