mm_ubsan: add dummy to bypass runtime actions

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen
2024-07-09 00:32:34 +08:00
committed by Xiang Xiao
parent 738a30a421
commit de460b5a10
2 changed files with 85 additions and 0 deletions
+7
View File
@@ -338,6 +338,13 @@ config MM_UBSAN_TRAP_ON_ERROR
The undefined instruction trap should cause your program to crash,
save the code space significantly.
config MM_UBSAN_DUMMY
bool "Bypass Undefined Behaviour Sanitizer Runtime Actions"
default n
depends on MM_UBSAN
---help---
Keep UBSAN compile time but disable runtime actions.
config MM_FILL_ALLOCATIONS
bool "Fill allocations with debug value"
default n