Skip to content

Commit 3a88d7c

Browse files
committed
arm64: kconfig: Update and comment GCC version check for kernel BTI
Some versions of GCC are known to suffer from a BTI code generation bug, meaning that CONFIG_CC_HAS_BRANCH_PROT_PAC_RET_BTI cannot be solely used to determine whether or not we can compile with kernel with BTI enabled. Update the BTI Kconfig entry to refer to the relevant GCC bugzilla entry (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94697) and update the check now that the fix has been merged into GCC release 10.1. Acked-by: Mark Brown <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent bf740a9 commit 3a88d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,8 @@ config ARM64_BTI_KERNEL
16161616
depends on ARM64_BTI
16171617
depends on ARM64_PTR_AUTH
16181618
depends on CC_HAS_BRANCH_PROT_PAC_RET_BTI
1619-
depends on !CC_IS_GCC || GCC_VERSION >= 100000
1619+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94697
1620+
depends on !CC_IS_GCC || GCC_VERSION >= 100100
16201621
depends on !(CC_IS_CLANG && GCOV_KERNEL)
16211622
depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_REGS)
16221623
help

0 commit comments

Comments
 (0)