Makefile (f80be4571b19b9fd8dd1528cd2a2f123aff51f70) Makefile (3c206509826094e85ead0b056f484db96829248d)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for KernelMemorySanitizer (KMSAN).
4#
5#
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for KernelMemorySanitizer (KMSAN).
4#
5#
6obj-y := core.o instrumentation.o hooks.o report.o shadow.o
6obj-y := core.o instrumentation.o init.o hooks.o report.o shadow.o
7
8KMSAN_SANITIZE := n
9KCOV_INSTRUMENT := n
10UBSAN_SANITIZE := n
11
12# Disable instrumentation of KMSAN runtime with other tools.
13CC_FLAGS_KMSAN_RUNTIME := -fno-stack-protector
14CC_FLAGS_KMSAN_RUNTIME += $(call cc-option,-fno-conserve-stack)
15CC_FLAGS_KMSAN_RUNTIME += -DDISABLE_BRANCH_PROFILING
16
17CFLAGS_REMOVE.o = $(CC_FLAGS_FTRACE)
18
19CFLAGS_core.o := $(CC_FLAGS_KMSAN_RUNTIME)
20CFLAGS_hooks.o := $(CC_FLAGS_KMSAN_RUNTIME)
7
8KMSAN_SANITIZE := n
9KCOV_INSTRUMENT := n
10UBSAN_SANITIZE := n
11
12# Disable instrumentation of KMSAN runtime with other tools.
13CC_FLAGS_KMSAN_RUNTIME := -fno-stack-protector
14CC_FLAGS_KMSAN_RUNTIME += $(call cc-option,-fno-conserve-stack)
15CC_FLAGS_KMSAN_RUNTIME += -DDISABLE_BRANCH_PROFILING
16
17CFLAGS_REMOVE.o = $(CC_FLAGS_FTRACE)
18
19CFLAGS_core.o := $(CC_FLAGS_KMSAN_RUNTIME)
20CFLAGS_hooks.o := $(CC_FLAGS_KMSAN_RUNTIME)
21CFLAGS_init.o := $(CC_FLAGS_KMSAN_RUNTIME)
21CFLAGS_instrumentation.o := $(CC_FLAGS_KMSAN_RUNTIME)
22CFLAGS_report.o := $(CC_FLAGS_KMSAN_RUNTIME)
23CFLAGS_shadow.o := $(CC_FLAGS_KMSAN_RUNTIME)
22CFLAGS_instrumentation.o := $(CC_FLAGS_KMSAN_RUNTIME)
23CFLAGS_report.o := $(CC_FLAGS_KMSAN_RUNTIME)
24CFLAGS_shadow.o := $(CC_FLAGS_KMSAN_RUNTIME)