Check for both aarch64 and arm64 arch's for pac-ret

Linux calls it aarch64, but MacOS calls it arm64; pac-ret works on both.
This commit is contained in:
KJ Tsanaktsidis 2024-08-19 16:22:27 +10:00 committed by KJ Tsanaktsidis
parent ff0a181852
commit 6a746e1bc9
Notes: git 2024-08-22 07:36:04 +00:00

View file

@ -839,7 +839,7 @@ AS_IF([test "$GCC" = yes], [
])
# aarch64 branch protection
AS_CASE(["$target_cpu"], [aarch64], [
AS_CASE(["$target_cpu"], [aarch64|arm64], [
AS_FOR(option, opt, [-mbranch-protection=pac-ret -msign-return-address=all], [
# Try these flags in the _prepended_ position - i.e. we want to try building a program
# with CFLAGS="-mbranch-protection=pac-ret $CFLAGS". If the builder has provided different