xref: /linux/kernel/entry/Makefile (revision 78bb43e51b94828b333ab296eabf893d5b439fc2)
1142781e1SThomas Gleixner# SPDX-License-Identifier: GPL-2.0
2142781e1SThomas Gleixner
3142781e1SThomas Gleixner# Prevent the noinstr section from being pestered by sanitizer and other goodies
4142781e1SThomas Gleixner# as long as these things cannot be disabled per function.
5142781e1SThomas GleixnerKASAN_SANITIZE := n
6142781e1SThomas GleixnerUBSAN_SANITIZE := n
7142781e1SThomas GleixnerKCOV_INSTRUMENT := n
8142781e1SThomas Gleixner
92cbb20b0SJosh Poimboeuf# Branch profiling isn't noinstr-safe
102cbb20b0SJosh Poimboeufccflags-$(CONFIG_TRACE_BRANCH_PROFILING) += -DDISABLE_BRANCH_PROFILING
112cbb20b0SJosh Poimboeuf
12142781e1SThomas GleixnerCFLAGS_REMOVE_common.o	 = -fstack-protector -fstack-protector-strong
13142781e1SThomas GleixnerCFLAGS_common.o		+= -fno-stack-protector
14142781e1SThomas Gleixner
15*a70e9f64SJinjie Ruanobj-$(CONFIG_GENERIC_IRQ_ENTRY) 	+= common.o
16*a70e9f64SJinjie Ruanobj-$(CONFIG_GENERIC_SYSCALL) 		+= syscall-common.o syscall_user_dispatch.o
17935ace2fSThomas Gleixnerobj-$(CONFIG_KVM_XFER_TO_GUEST_WORK)	+= kvm.o
18