diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7d4d672dfbda..2944b88fa59c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1743,7 +1743,7 @@ config RANDOMIZE_MODULE_REGION_FULL core kernel, so branch relocations are always in range. config CC_HAVE_STACKPROTECTOR_SYSREG - def_bool $(cc-option,-mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=0) + def_bool CC_IS_GCC && $(cc-option,-mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=0) config STACKPROTECTOR_PER_TASK def_bool y