xref: /openbmc/linux/mm/kasan/Makefile (revision e2092740)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
20b24beccSAndrey RyabininKASAN_SANITIZE := n
3bffa986cSAndrey KonovalovUBSAN_SANITIZE_common.o := n
4b938fcf4SAndrey KonovalovUBSAN_SANITIZE_generic.o := n
52bd926b4SAndrey KonovalovUBSAN_SANITIZE_tags.o := n
65c9a8750SDmitry VyukovKCOV_INSTRUMENT := n
70b24beccSAndrey Ryabinin
8e2092740STorsten DuweCFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE)
9e2092740STorsten DuweCFLAGS_REMOVE_generic.o = $(CC_FLAGS_FTRACE)
10e2092740STorsten DuweCFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE)
11dc15a8a2SAndrey Konovalov
120b24beccSAndrey Ryabinin# Function splitter causes unnecessary splits in __asan_load1/__asan_store1
130b24beccSAndrey Ryabinin# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
14bffa986cSAndrey Konovalov
15bffa986cSAndrey KonovalovCFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
16b938fcf4SAndrey KonovalovCFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
172bd926b4SAndrey KonovalovCFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
180b24beccSAndrey Ryabinin
192bd926b4SAndrey Konovalovobj-$(CONFIG_KASAN) := common.o init.o report.o
2011cd3cd6SAndrey Konovalovobj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o
2111cd3cd6SAndrey Konovalovobj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o
22