diff options
author | Joel Peshkin <joel.peshkin@broadcom.com> | 2021-04-11 12:21:58 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-20 14:31:12 +0300 |
commit | 4e9bce12432492aa7a7c2121d9fae1640606ace5 (patch) | |
tree | ca4ff1ffa3d447d51e945ce4cd9f75f6e80babe9 /arch/riscv/lib | |
parent | 1598c83ecec64619379834ec21de8efe2536ac3d (diff) | |
download | u-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/riscv/lib')
-rw-r--r-- | arch/riscv/lib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile index ff0677aa96..d08cbe9b79 100644 --- a/arch/riscv/lib/Makefile +++ b/arch/riscv/lib/Makefile @@ -27,6 +27,7 @@ obj-$(CONFIG_SPL_BUILD) += spl.o obj-y += fdt_fixup.o # For building EFI apps +CFLAGS_NON_EFI := -fstack-protector-strong CFLAGS_$(EFI_CRT0) := $(CFLAGS_EFI) CFLAGS_REMOVE_$(EFI_CRT0) := $(CFLAGS_NON_EFI) |