diff options
author | Joel Peshkin <joel.peshkin@broadcom.com> | 2021-04-11 11:21:58 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-20 07:31:12 -0400 |
commit | 4e9bce12432492aa7a7c2121d9fae1640606ace5 (patch) | |
tree | ca4ff1ffa3d447d51e945ce4cd9f75f6e80babe9 /common/Kconfig | |
parent | 1598c83ecec64619379834ec21de8efe2536ac3d (diff) | |
download | u-boot-4e9bce12432492aa7a7c2121d9fae1640606ace5.tar.gz |
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 'common/Kconfig')
-rw-r--r-- | common/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 0e36dfd236..26496f9a2e 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -618,6 +618,23 @@ config TPL_HASH and the algorithms it supports are defined in common/hash.c. See also CMD_HASH for command-line access. +config STACKPROTECTOR + bool "Stack Protector buffer overflow detection" + default n + help + Enable stack smash detection through compiler's stack-protector + canary logic + +config SPL_STACKPROTECTOR + bool "Stack Protector buffer overflow detection for SPL" + depends on STACKPROTECTOR && SPL + default n + +config TPL_STACKPROTECTOR + bool "Stack Protector buffer overflow detection for TPL" + depends on STACKPROTECTOR && TPL + default n + endmenu menu "Update support" |