sim: Always enable full UBSan feature to catch more error
since the resource is plenty on simulator Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
d6b5a345a4
commit
33dabe3c38
@ -78,13 +78,12 @@ else ifeq ($(CONFIG_MM_KASAN_ALL),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SIM_UBSAN),y)
|
ifeq ($(CONFIG_SIM_UBSAN),y)
|
||||||
ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
|
ARCHOPTIMIZATION += -fsanitize=undefined
|
||||||
else ifeq ($(CONFIG_MM_UBSAN_ALL),y)
|
else ifeq ($(CONFIG_MM_UBSAN_ALL),y)
|
||||||
ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
|
ARCHOPTIMIZATION += $(CONFIG_MM_UBSAN_OPTION)
|
||||||
endif
|
ifeq ($(CONFIG_MM_UBSAN_TRAP_ON_ERROR),y)
|
||||||
|
ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
|
||||||
ifeq ($(CONFIG_MM_UBSAN_TRAP_ON_ERROR),y)
|
endif
|
||||||
ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Add -fno-common because macOS "ld -r" doesn't seem to pick objects
|
# Add -fno-common because macOS "ld -r" doesn't seem to pick objects
|
||||||
|
@ -212,7 +212,7 @@ config MM_UBSAN_ALL
|
|||||||
|
|
||||||
config MM_UBSAN_OPTION
|
config MM_UBSAN_OPTION
|
||||||
string "UBSan options"
|
string "UBSan options"
|
||||||
depends on MM_UBSAN || SIM_UBSAN
|
depends on MM_UBSAN
|
||||||
default "-fsanitize=undefined"
|
default "-fsanitize=undefined"
|
||||||
---help---
|
---help---
|
||||||
This option activates specified UBSan instrumentation. Please
|
This option activates specified UBSan instrumentation. Please
|
||||||
|
Loading…
Reference in New Issue
Block a user