Bug #20154 ยป 0001-aarch64-Check-mbranch-protection-standard-first-to-u.patch
configure.ac | ||
---|---|---|
# aarch64 branch protection
|
||
AS_CASE(["$target_cpu"], [aarch64], [
|
||
AS_FOR(option, opt, [-mbranch-protection=pac-ret -msign-return-address=all], [
|
||
AS_FOR(option, opt, [-mbranch-protection=standard -mbranch-protection=pac-ret -msign-return-address=all], [
|
||
RUBY_TRY_CFLAGS(option, [branch_protection=yes], [branch_protection=no])
|
||
AS_IF([test "x$branch_protection" = xyes], [
|
||
# C compiler and assembler must be consistent for -mbranch-protection
|