kernel: stack: add -fstack-protector-all without checks

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2017-11-29 10:19:50 +01:00 committed by Anas Nashif
parent 033fe7ed74
commit 703dc59baa

View file

@ -194,11 +194,7 @@ zephyr_cc_option(-fno-pic)
zephyr_cc_option(-fno-strict-overflow)
zephyr_cc_option(-Wno-pointer-sign)
if(CONFIG_STACK_CANARIES)
zephyr_cc_option(-fstack-protector-all)
else()
zephyr_cc_option(-fno-stack-protector)
endif()
zephyr_compile_options_ifdef(CONFIG_STACK_CANARIES -fstack-protector-all)
if(CONFIG_OVERRIDE_FRAME_POINTER_DEFAULT)
if(CONFIG_OMIT_FRAME_POINTER)