]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/i386/configure.ac
Don't use hidden visibility in libc.a with PIE on i386
[thirdparty/glibc.git] / sysdeps / i386 / configure.ac
index f8f9e44909af8bc07ff7dc9289fbb216f0e82267..b598b120bcd734b11e651e17f8718e05046238d9 100644 (file)
@@ -41,12 +41,16 @@ else
   libc_cv_asm_mpx=no
 fi
 rm -f conftest*])
-if test $libc_cv_asm_mpx == yes; then
+if test $libc_cv_asm_mpx = yes; then
   AC_DEFINE(HAVE_MPX_SUPPORT)
 fi
 
-AC_DEFINE(USE_REGPARMS)
-
 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