xref: /linux/kernel/entry/Makefile (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
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
9142781e1SThomas Gleixner# Branch profiling isn't noinstr-safe
10142781e1SThomas Gleixnerccflags-$(CONFIG_TRACE_BRANCH_PROFILING) += -DDISABLE_BRANCH_PROFILING
11142781e1SThomas Gleixner
12*1446e1dfSGabriel Krisman BertaziCFLAGS_REMOVE_common.o	 = -fstack-protector -fstack-protector-strong
13935ace2fSThomas GleixnerCFLAGS_common.o		+= -fno-stack-protector
14
15obj-$(CONFIG_GENERIC_IRQ_ENTRY) 	+= common.o
16obj-$(CONFIG_GENERIC_SYSCALL) 		+= syscall-common.o syscall_user_dispatch.o
17obj-$(CONFIG_VIRT_XFER_TO_GUEST_WORK)	+= virt.o
18