diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-01-20 12:26:31 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-01-21 15:54:50 +0000 |
commit | 374cef32ac36d956f75ccc6416872498bbe66e82 (patch) | |
tree | b18b4acae8e2eb2e0ded3377e609e46aad955a5a /sysdeps/aarch64 | |
parent | bfe04789a8d9014cf3177137651f8f93dd4a00ca (diff) | |
download | glibc-374cef32ac36d956f75ccc6416872498bbe66e82.tar.gz glibc-374cef32ac36d956f75ccc6416872498bbe66e82.tar.xz 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/aarch64')
-rw-r--r-- | sysdeps/aarch64/configure | 4 | ||||
-rw-r--r-- | sysdeps/aarch64/configure.ac | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 5f5f3cc44c..83c3a23e44 100644 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -6,6 +6,10 @@ $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h +# Static PIE is supported. +$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h + + # We check to see if the compiler and flags are # selecting the big endian ABI and if they are then # we set libc_cv_aarch64_be to yes which causes diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac index 180a16a29f..66f755078a 100644 --- a/sysdeps/aarch64/configure.ac +++ b/sysdeps/aarch64/configure.ac @@ -5,6 +5,9 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # The exception is -mcmodel=large which is unsupported with PIC/PIE. AC_DEFINE(PI_STATIC_AND_HIDDEN) +# Static PIE is supported. +AC_DEFINE(SUPPORT_STATIC_PIE) + # We check to see if the compiler and flags are # selecting the big endian ABI and if they are then # we set libc_cv_aarch64_be to yes which causes |