diff options
author | Joel Peshkin <joel.peshkin@broadcom.com> | 2021-04-11 11:21:58 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-19 11:10:55 -0400 |
commit | 6e3b77a55a145527508b46cb294d19f1f25d9047 (patch) | |
tree | 195765ff56dae01b74ab90ff902ca7a5254553c1 /arch/x86 | |
parent | 38bc426a2cb6fc4716ee28d170edd4c717e1263f (diff) | |
download | u-boot-WIP/2021-04-19-assorted-improvements.tar.gz |
Add support for stack-protectorWIP/2021-04-19-assorted-improvements
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/x86')
-rw-r--r-- | arch/x86/config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/config.mk b/arch/x86/config.mk index 3067702858..7a8242562d 100644 --- a/arch/x86/config.mk +++ b/arch/x86/config.mk @@ -42,7 +42,7 @@ OBJCOPYFLAGS_EFI := -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ # Compiler flags to be added when building UEFI applications CFLAGS_EFI := -fpic -fshort-wchar # Compiler flags to be removed when building UEFI applications -CFLAGS_NON_EFI := -mregparm=3 +CFLAGS_NON_EFI := -mregparm=3 -fstack-protector-strong ifeq ($(CONFIG_EFI_STUB_64BIT),) CFLAGS_EFI += $(call cc-option, -mno-red-zone) |