aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2021-01-20 12:26:31 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2021-01-21 15:54:50 +0000
commit374cef32ac36d956f75ccc6416872498bbe66e82 (patch)
treeb18b4acae8e2eb2e0ded3377e609e46aad955a5a /sysdeps/i386
parentbfe04789a8d9014cf3177137651f8f93dd4a00ca (diff)
downloadglibc-374cef32ac36d956f75ccc6416872498bbe66e82.tar
glibc-374cef32ac36d956f75ccc6416872498bbe66e82.tar.gz
glibc-374cef32ac36d956f75ccc6416872498bbe66e82.tar.bz2
glibc-374cef32ac36d956f75ccc6416872498bbe66e82.zip
configure: Check for static PIE support
Add SUPPORT_STATIC_PIE that targets can define if they support static PIE. This requires PI_STATIC_AND_HIDDEN support and various linker features as described in commit 9d7a3741c9e59eba87fb3ca6b9f979befce07826 Add --enable-static-pie configure option to build static PIE [BZ #19574] Currently defined on x86_64, i386 and aarch64 where static PIE is known to work. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/configure3
-rw-r--r--sysdeps/i386/configure.ac3
2 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure
index 90c63caf35..bb482ca16c 100644
--- a/sysdeps/i386/configure
+++ b/sysdeps/i386/configure
@@ -117,3 +117,6 @@ if test x"$multi_arch" != xno; then
$as_echo "#define NO_HIDDEN_EXTERN_FUNC_IN_PIE 1" >>confdefs.h
fi
+
+$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h
+
diff --git a/sysdeps/i386/configure.ac b/sysdeps/i386/configure.ac
index 6d2068d2b3..5e43eb0adf 100644
--- a/sysdeps/i386/configure.ac
+++ b/sysdeps/i386/configure.ac
@@ -77,3 +77,6 @@ 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
+
+dnl Static PIE is supported.
+AC_DEFINE(SUPPORT_STATIC_PIE)