diff options
Diffstat (limited to 'firmware/objects.mk')
| -rw-r--r-- | firmware/objects.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/objects.mk b/firmware/objects.mk index a90485d0..bfec4671 100644 --- a/firmware/objects.mk +++ b/firmware/objects.mk @@ -66,3 +66,12 @@ endif ifdef FW_OPTIONS firmware-genflags-y += -DFW_OPTIONS=$(FW_OPTIONS) endif + +ifeq ($(CONFIG_STACK_PROTECTOR),y) +stack-protector-cflags-$(CONFIG_STACK_PROTECTOR) := -fstack-protector +stack-protector-cflags-$(CONFIG_STACK_PROTECTOR_STRONG) := -fstack-protector-strong +stack-protector-cflags-$(CONFIG_STACK_PROTECTOR_ALL) := -fstack-protector-all +else +stack-protector-cflags-y := -fno-stack-protector +endif +firmware-cflags-y += $(stack-protector-cflags-y) |
