Add support for stack-protector
Add support for stack protector for UBOOT, SPL, and TPL as well as new pytest for stackprotector Signed-off-by: Joel Peshkin <joel.peshkin@broadcom.com> Adjust UEFI build flags. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -67,6 +67,12 @@ include $(srctree)/scripts/Makefile.lib
|
||||
KBUILD_CFLAGS += -ffunction-sections -fdata-sections
|
||||
LDFLAGS_FINAL += --gc-sections
|
||||
|
||||
ifeq ($(CONFIG_$(SPL_TPL_)STACKPROTECTOR),y)
|
||||
KBUILD_CFLAGS += -fstack-protector-strong
|
||||
else
|
||||
KBUILD_CFLAGS += -fno-stack-protector
|
||||
endif
|
||||
|
||||
# FIX ME
|
||||
cpp_flags := $(KBUILD_CPPFLAGS) $(PLATFORM_CPPFLAGS) $(UBOOTINCLUDE) \
|
||||
$(NOSTDINC_FLAGS)
|
||||
|
||||
Reference in New Issue
Block a user