| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
# Prevent the noinstr section from being pestered by sanitizer and other goodies |
| 4 |
# as long as these things cannot be disabled per function. |
| 5 |
KASAN_SANITIZE := n |
| 6 |
UBSAN_SANITIZE := n |
| 7 |
KCOV_INSTRUMENT := n |
| 8 |
|
| 9 |
# Branch profiling isn't noinstr-safe |
| 10 |
ccflags-$(CONFIG_TRACE_BRANCH_PROFILING) += -DDISABLE_BRANCH_PROFILING |
| 11 |
|
| 12 |
CFLAGS_REMOVE_common.o = -fstack-protector -fstack-protector-strong |
| 13 |
CFLAGS_common.o += -fno-stack-protector |
| 14 |
|
| 15 |
obj-$(CONFIG_GENERIC_IRQ_ENTRY) += common.o |
| 16 |
obj-$(CONFIG_GENERIC_SYSCALL) += syscall-common.o syscall_user_dispatch.o |
| 17 |
obj-$(CONFIG_VIRT_XFER_TO_GUEST_WORK) += virt.o |