| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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_generic_report.o := n |
| 6 | UBSAN_SANITIZE_tags.o := n |
| 7 | KCOV_INSTRUMENT := n |
| 8 | |
| 9 | CFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE) |
| 10 | CFLAGS_REMOVE_generic.o = $(CC_FLAGS_FTRACE) |
| 11 | CFLAGS_REMOVE_generic_report.o = $(CC_FLAGS_FTRACE) |
| 12 | CFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE) |
| 13 | |
| 14 | # Function splitter causes unnecessary splits in __asan_load1/__asan_store1 |
| 15 | # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533 |
| 16 | |
| 17 | CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -DDISABLE_BRANCH_PROFILING |
| 18 | CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -DDISABLE_BRANCH_PROFILING |
| 19 | CFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -DDISABLE_BRANCH_PROFILING |
| 20 | CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -DDISABLE_BRANCH_PROFILING |
| 21 | |
| 22 | obj-$(CONFIG_KASAN) := common.o init.o report.o |
| 23 | obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o |
| 24 | obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o |