summary refs log tree commit diff
path: root/config.h.in
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-05-07 18:30:12 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-07-08 15:02:38 +0100
commit9e1751e6d693b73b95db2f6d8438dd80f1aeffe0 (patch)
tree40ece1a3b2681b7152ec3e7352e97bcd340e17b8 /config.h.in
parentde9301c02e898fb20a609b459d81afda42f39c61 (diff)
downloadglibc-9e1751e6d693b73b95db2f6d8438dd80f1aeffe0.tar.gz
glibc-9e1751e6d693b73b95db2f6d8438dd80f1aeffe0.tar.xz
glibc-9e1751e6d693b73b95db2f6d8438dd80f1aeffe0.zip
aarch64: configure check for pac-ret code generation
Return address signing requires unwinder support, which is
present in libgcc since >=gcc-7, however due to bugs the
support may be broken in <gcc-10 (and similarly there may
be issues in custom unwinders), so pac-ret is not always
safe to use. So in assembly code glibc should only use
pac-ret if the compiler uses it too. Unfortunately there
is no predefined feature macro for it set by the compiler
so pac-ret is inferred from the code generation.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 67169e5d01..7921917ad2 100644
--- a/config.h.in
+++ b/config.h.in
@@ -112,6 +112,9 @@
 /* AArch64 BTI support enabled.  */
 #define HAVE_AARCH64_BTI 0
 
+/* AArch64 PAC-RET code generation is enabled.  */
+#define HAVE_AARCH64_PAC_RET 0
+
 /* C-SKY ABI version.  */
 #undef CSKYABI