mm/kasan: bypass link-time optimizer

To avoid lto alias with override __asan_* symbols

undefined reference to `__asan_load4_noabort'
undefined reference to `__asan_load1_noabort'
undefined reference to `__asan_store1_noabort'
undefined reference to `__asan_load1_noabort'
undefined reference to `__asan_store1_noabort'
undefined reference to `__asan_load4_noabort'
undefined reference to `__asan_store4_noabort'

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-05-16 22:58:16 +08:00 committed by Petro Karashchenko
parent 76bdfcc9d9
commit ac8918345b

View File

@ -25,6 +25,7 @@ CSRCS += kasan.c
# Disable kernel-address in mm subsystem
CFLAGS += -fno-sanitize=kernel-address
CFLAGS += -fno-lto
# Add the core heap directory to the build