Merge tag 's390-4.21-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[sfrench/cifs-2.6.git] / mm / kasan / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 KASAN_SANITIZE := n
3 UBSAN_SANITIZE_common.o := n
4 UBSAN_SANITIZE_generic.o := n
5 UBSAN_SANITIZE_tags.o := n
6 KCOV_INSTRUMENT := n
7
8 CFLAGS_REMOVE_generic.o = -pg
9 # Function splitter causes unnecessary splits in __asan_load1/__asan_store1
10 # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
11
12 CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
13 CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
14 CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
15
16 obj-$(CONFIG_KASAN) := common.o init.o report.o
17 obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o
18 obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o