x86/configure.ac: Define PI_STATIC_AND_HIDDEN/SUPPORT_STATIC_PIE

Move PI_STATIC_AND_HIDDEN and SUPPORT_STATIC_PIE to
sysdeps/x86/configure.ac.
This commit is contained in:
H.J. Lu 2022-02-07 14:11:42 -08:00
parent 2e20cd63c9
commit f9db5433f3
6 changed files with 13 additions and 26 deletions

View File

@ -83,13 +83,7 @@ $as_echo "$libc_cv_ld_static_pie" >&6; }
fi fi
fi fi
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
if test x"$multi_arch" != xno; then if test x"$multi_arch" != xno; then
$as_echo "#define NO_HIDDEN_EXTERN_FUNC_IN_PIE 1" >>confdefs.h $as_echo "#define NO_HIDDEN_EXTERN_FUNC_IN_PIE 1" >>confdefs.h
fi fi
$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h

View File

@ -53,15 +53,8 @@ rm -f conftest*])
fi fi
fi 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 When multi-arch is enabled, all external functions must be called
dnl via PIC PLT in PIE, which requires setting up EBX register. dnl via PIC PLT in PIE, which requires setting up EBX register.
if test x"$multi_arch" != xno; then if test x"$multi_arch" != xno; then
AC_DEFINE(NO_HIDDEN_EXTERN_FUNC_IN_PIE) AC_DEFINE(NO_HIDDEN_EXTERN_FUNC_IN_PIE)
fi fi
dnl Static PIE is supported.
AC_DEFINE(SUPPORT_STATIC_PIE)

View File

@ -189,3 +189,9 @@ $as_echo "$libc_cv_have_x86_movbe" >&6; }
fi fi
config_vars="$config_vars config_vars="$config_vars
enable-x86-isa-level = $libc_cv_include_x86_isa_level" enable-x86-isa-level = $libc_cv_include_x86_isa_level"
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h

View File

@ -127,3 +127,10 @@ if test $libc_cv_include_x86_isa_level = yes; then
fi fi
fi fi
LIBC_CONFIG_VAR([enable-x86-isa-level], [$libc_cv_include_x86_isa_level]) LIBC_CONFIG_VAR([enable-x86-isa-level], [$libc_cv_include_x86_isa_level])
dnl It is always possible to access static and hidden symbols in an
dnl position independent way.
AC_DEFINE(PI_STATIC_AND_HIDDEN)
dnl Static PIE is supported.
AC_DEFINE(SUPPORT_STATIC_PIE)

View File

@ -27,11 +27,5 @@ if test x"$build_mathvec" = xnotset; then
build_mathvec=yes build_mathvec=yes
fi fi
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h
test -n "$critic_missing" && as_fn_error $? " test -n "$critic_missing" && as_fn_error $? "
*** $critic_missing" "$LINENO" 5 *** $critic_missing" "$LINENO" 5

View File

@ -14,12 +14,5 @@ if test x"$build_mathvec" = xnotset; then
build_mathvec=yes build_mathvec=yes
fi 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 Static PIE is supported.
AC_DEFINE(SUPPORT_STATIC_PIE)
test -n "$critic_missing" && AC_MSG_ERROR([ test -n "$critic_missing" && AC_MSG_ERROR([
*** $critic_missing]) *** $critic_missing])