From fd1eaeaab451fd4f3d4507fba32cfb8e54a3a55a Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 28 Nov 2017 15:56:00 -0500 Subject: [PATCH] kernel: stack: add -fstack-protector-all without checks Fixes #5019 Signed-off-by: Anas Nashif --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 633b1b258898..05604e23715e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)