arm64: Only enable CC_HAVE_STACKPROTECTOR_SYSREG for GCC

When STACKPROTECTOR_PER_TASK is enabled, __stack_chk_guard is not
exported which breaks external modules due to missing symbols.

Change-Id: I633dcdd3343f63f6af34aab87e98cc81c6c56fe2
This commit is contained in:
Michael Bestas 2023-08-28 09:46:42 +03:00
parent 771c29041c
commit 1917162586
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -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