summaryrefslogtreecommitdiff
path: root/src/Kconfig
diff options
context:
space:
mode:
authorHarshit Sharma <harshitsharmajs@gmail.com>2020-07-20 00:21:05 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-08-21 07:41:19 +0000
commita6ebe08333dcc6c263b6bb8936d4883663c63798 (patch)
tree8f06ee5f79cf4efb54f189c17512a6120d2edd40 /src/Kconfig
parent9c88fb8df0005dc60e6c62778b4f16313cb3308e (diff)
downloadcoreboot-a6ebe08333dcc6c263b6bb8936d4883663c63798.tar.xz
lib: Add ASan support to romstage on x86 arch
This patch adds ASan support to romstage on x86 architecture. A Kconfig option is added to enable ASan in romstage. Compiler flags are updated. A memory space representing the shadow region is reserved in linker section. And a function call to asan_init() is added to initialize shadow region when romstage loads. Change-Id: I67ebfb5e8d602e865b1f5c874860861ae4e54381 Signed-off-by: Harshit Sharma <harshitsharmajs@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43604 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index f8af522823..447755be80 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -288,6 +288,13 @@ if ASAN_IN_RAMSTAGE
comment "asan_shadow_offset_callback patch is applied to GCC."
endif
+config ASAN_IN_ROMSTAGE
+ bool
+ depends on ASAN_IN_RAMSTAGE
+ default n
+ help
+ Enable address sanitizer in romstage for platform.
+
choice
prompt "Stage Cache for ACPI S3 resume"
default NO_STAGE_CACHE if !HAVE_ACPI_RESUME