1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 20b24beccSAndrey RyabininKASAN_SANITIZE := n 38a16c09eSAndrey KonovalovUBSAN_SANITIZE := n 45c9a8750SDmitry VyukovKCOV_INSTRUMENT := n 50b24beccSAndrey Ryabinin 68a16c09eSAndrey Konovalov# Disable ftrace to avoid recursion. 7e2092740STorsten DuweCFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE) 8e2092740STorsten DuweCFLAGS_REMOVE_generic.o = $(CC_FLAGS_FTRACE) 9c620f7bdSLinus TorvaldsCFLAGS_REMOVE_generic_report.o = $(CC_FLAGS_FTRACE) 108a16c09eSAndrey KonovalovCFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE) 118a16c09eSAndrey KonovalovCFLAGS_REMOVE_quarantine.o = $(CC_FLAGS_FTRACE) 128a16c09eSAndrey KonovalovCFLAGS_REMOVE_report.o = $(CC_FLAGS_FTRACE) 13e2092740STorsten DuweCFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE) 148a16c09eSAndrey KonovalovCFLAGS_REMOVE_tags_report.o = $(CC_FLAGS_FTRACE) 15dc15a8a2SAndrey Konovalov 160b24beccSAndrey Ryabinin# Function splitter causes unnecessary splits in __asan_load1/__asan_store1 170b24beccSAndrey Ryabinin# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533 18bffa986cSAndrey KonovalovCFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 19b938fcf4SAndrey KonovalovCFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 2057b78a62SPeter ZijlstraCFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 218a16c09eSAndrey KonovalovCFLAGS_init.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 228a16c09eSAndrey KonovalovCFLAGS_quarantine.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 238a16c09eSAndrey KonovalovCFLAGS_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 242bd926b4SAndrey KonovalovCFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 258a16c09eSAndrey KonovalovCFLAGS_tags_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) 260b24beccSAndrey Ryabinin 272bd926b4SAndrey Konovalovobj-$(CONFIG_KASAN) := common.o init.o report.o 2811cd3cd6SAndrey Konovalovobj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o 2911cd3cd6SAndrey Konovalovobj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o 30