aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-02-07 14:11:42 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-14 07:34:54 -0800
commitf9db5433f3b945299d60c4a3f6a1f0b025fc335c (patch)
tree656dab6d1b3b47968896456f1d9229a4e1ce8efb /sysdeps/x86
parent2e20cd63c96555d650c525ad5633475e8f11bed4 (diff)
downloadglibc-f9db5433f3b945299d60c4a3f6a1f0b025fc335c.tar
glibc-f9db5433f3b945299d60c4a3f6a1f0b025fc335c.tar.gz
glibc-f9db5433f3b945299d60c4a3f6a1f0b025fc335c.tar.bz2
glibc-f9db5433f3b945299d60c4a3f6a1f0b025fc335c.zip
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.
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/configure6
-rw-r--r--sysdeps/x86/configure.ac7
2 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/x86/configure b/sysdeps/x86/configure
index 7bdbfdc6dc..46d436fddf 100644
--- a/sysdeps/x86/configure
+++ b/sysdeps/x86/configure
@@ -189,3 +189,9 @@ $as_echo "$libc_cv_have_x86_movbe" >&6; }
fi
config_vars="$config_vars
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
+
diff --git a/sysdeps/x86/configure.ac b/sysdeps/x86/configure.ac
index 10d5c2e0e5..918b636891 100644
--- a/sysdeps/x86/configure.ac
+++ b/sysdeps/x86/configure.ac
@@ -127,3 +127,10 @@ if test $libc_cv_include_x86_isa_level = yes; then
fi
fi
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)