kbuild: explicit turn off gcc stack-protector

Ubuntu has enabled -fstack-protector per default in gcc
breaking kernel build. Explicit turn it off for now.
Later we may decide to make it configurable if the
kernel starts to support it.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

+3
+3
Makefile
··· 309 310 CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 311 -fno-strict-aliasing -fno-common 312 AFLAGS := -D__ASSEMBLY__ 313 314 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
··· 309 310 CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 311 -fno-strict-aliasing -fno-common 312 + # Force gcc to behave correct even for buggy distributions 313 + CFLAGS += $(call cc-option, -fno-stack-protector-all \ 314 + -fno-stack-protector) 315 AFLAGS := -D__ASSEMBLY__ 316 317 # Read KERNELRELEASE from include/config/kernel.release (if it exists)