summaryrefslogtreecommitdiff
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorJoel Peshkin <joel.peshkin@broadcom.com>2021-04-11 12:21:58 +0300
committerTom Rini <trini@konsulko.com>2021-04-20 14:31:12 +0300
commit4e9bce12432492aa7a7c2121d9fae1640606ace5 (patch)
treeca4ff1ffa3d447d51e945ce4cd9f75f6e80babe9 /arch/arm/config.mk
parent1598c83ecec64619379834ec21de8efe2536ac3d (diff)
downloadu-boot-4e9bce12432492aa7a7c2121d9fae1640606ace5.tar.xz
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>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r--arch/arm/config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 4153f7e371..e79f0104b9 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -11,7 +11,8 @@ CONFIG_STANDALONE_LOAD_ADDR = 0xc100000
endif
endif
-CFLAGS_NON_EFI := -fno-pic -ffixed-r9 -ffunction-sections -fdata-sections
+CFLAGS_NON_EFI := -fno-pic -ffixed-r9 -ffunction-sections -fdata-sections \
+ -fstack-protector-strong
CFLAGS_EFI := -fpic -fshort-wchar
LDFLAGS_FINAL += --gc-sections