aarch64: configure test for BTI support
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 6 May 2020 19:22:16 +0000 (20:22 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 8 Jul 2020 14:02:37 +0000 (15:02 +0100)
commit1b0a4f58f5b10cf6d5ad10ee8d81772c5bd29248
tree1b4e0dcc25815f45d90cc1c2b9def4d42ab9aecc
parentdbfefbdc3aeec88868cb9d46267f91dc62461226
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>
config.h.in
sysdeps/aarch64/configure
sysdeps/aarch64/configure.ac