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:
parent
771c29041c
commit
1917162586
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue