Skip to content

Commit

Permalink
kernel: stack: add -fstack-protector-all without checks
Browse files Browse the repository at this point in the history
Fixes zephyrproject-rtos#5019

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Nov 28, 2017
1 parent 6474e5f commit fd1eaea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ 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)
zephyr_cc_option_nocheck(-fstack-protector-all)
endif()

if(CONFIG_OVERRIDE_FRAME_POINTER_DEFAULT)
Expand Down

0 comments on commit fd1eaea

Please sign in to comment.