arm64: add kasan support for arm64
Add kasan compiler option in arm64 Toolchain.defs Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
835a2a8801
commit
28cb5e7984
@ -80,6 +80,10 @@ ifeq ($(CONFIG_MM_UBSAN_TRAP_ON_ERROR),y)
|
|||||||
ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
|
ARCHOPTIMIZATION += -fsanitize-undefined-trap-on-error
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_MM_KASAN_ALL),y)
|
||||||
|
ARCHOPTIMIZATION += -fsanitize=kernel-address
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_FPU),y)
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
||||||
ARCHCXXFLAGS += -D_LDBL_EQ_DBL
|
ARCHCXXFLAGS += -D_LDBL_EQ_DBL
|
||||||
ARCHCFLAGS += -D_LDBL_EQ_DBL
|
ARCHCFLAGS += -D_LDBL_EQ_DBL
|
||||||
|
Loading…
Reference in New Issue
Block a user