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 9*2cbb20b0SJosh Poimboeuf# Branch profiling isn't noinstr-safe 10*2cbb20b0SJosh Poimboeufccflags-$(CONFIG_TRACE_BRANCH_PROFILING) += -DDISABLE_BRANCH_PROFILING 11*2cbb20b0SJosh Poimboeuf 12142781e1SThomas GleixnerCFLAGS_REMOVE_common.o = -fstack-protector -fstack-protector-strong 13142781e1SThomas GleixnerCFLAGS_common.o += -fno-stack-protector 14142781e1SThomas Gleixner 151446e1dfSGabriel Krisman Bertaziobj-$(CONFIG_GENERIC_ENTRY) += common.o syscall_user_dispatch.o 16935ace2fSThomas Gleixnerobj-$(CONFIG_KVM_XFER_TO_GUEST_WORK) += kvm.o 17