aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-05-06 20:22:16 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2020-07-08 15:02:37 +0100
commit1b0a4f58f5b10cf6d5ad10ee8d81772c5bd29248 (patch)
tree1b4e0dcc25815f45d90cc1c2b9def4d42ab9aecc /config.h.in
parentdbfefbdc3aeec88868cb9d46267f91dc62461226 (diff)
downloadglibc-1b0a4f58f5b10cf6d5ad10ee8d81772c5bd29248.tar
glibc-1b0a4f58f5b10cf6d5ad10ee8d81772c5bd29248.tar.gz
glibc-1b0a4f58f5b10cf6d5ad10ee8d81772c5bd29248.tar.bz2
glibc-1b0a4f58f5b10cf6d5ad10ee8d81772c5bd29248.zip
aarch64: configure test for BTI support
Check BTI support in the compiler and linker. The check also requires READELF that understands the BTI GNU property note. It is expected to succeed with gcc >=gcc-9 configured with --enable-standard-branch-protection and binutils >=binutils-2.33. Note: passing -mbranch-protection=bti in CFLAGS when building glibc may not be enough to get a glibc that supports BTI because crtbegin* and crtend* provided by the compiler needs to be BTI compatible too. 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 831eca2fe1..67169e5d01 100644
--- a/config.h.in
+++ b/config.h.in
@@ -109,6 +109,9 @@
/* AArch64 big endian ABI */
#undef HAVE_AARCH64_BE
+/* AArch64 BTI support enabled. */
+#define HAVE_AARCH64_BTI 0
+
/* C-SKY ABI version. */
#undef CSKYABI