]> git.ipfire.org Git - thirdparty/glibc.git/commit - config.h.in
aarch64: configure check for pac-ret code generation
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 7 May 2020 17:30:12 +0000 (18:30 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 8 Jul 2020 14:02:38 +0000 (15:02 +0100)
commit9e1751e6d693b73b95db2f6d8438dd80f1aeffe0
tree40ece1a3b2681b7152ec3e7352e97bcd340e17b8
parentde9301c02e898fb20a609b459d81afda42f39c61
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>
config.h.in
sysdeps/aarch64/configure
sysdeps/aarch64/configure.ac