blob: 08b43de2383b7b844b55d13e5814594c5cf7ecec [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Andrey Ryabinin0b24bec2015-02-13 14:39:17 -08002KASAN_SANITIZE := n
Andrey Konovalovbffa9862018-12-28 00:29:45 -08003UBSAN_SANITIZE_common.o := n
Andrey Konovalovb938fcf42018-12-28 00:29:49 -08004UBSAN_SANITIZE_generic.o := n
Peter Zijlstra57b78a622019-04-03 09:39:50 +02005UBSAN_SANITIZE_generic_report.o := n
Andrey Konovalov2bd926b2018-12-28 00:29:53 -08006UBSAN_SANITIZE_tags.o := n
Dmitry Vyukov5c9a8752016-03-22 14:27:30 -07007KCOV_INSTRUMENT := n
Andrey Ryabinin0b24bec2015-02-13 14:39:17 -08008
Torsten Duwee2092742019-02-08 16:10:14 +01009CFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE)
10CFLAGS_REMOVE_generic.o = $(CC_FLAGS_FTRACE)
Linus Torvaldsc620f7b2019-05-06 17:54:22 -070011CFLAGS_REMOVE_generic_report.o = $(CC_FLAGS_FTRACE)
Torsten Duwee2092742019-02-08 16:10:14 +010012CFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE)
Andrey Konovalovdc15a8a2019-02-20 22:20:20 -080013
Andrey Ryabinin0b24bec2015-02-13 14:39:17 -080014# Function splitter causes unnecessary splits in __asan_load1/__asan_store1
15# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
Andrey Konovalovbffa9862018-12-28 00:29:45 -080016
17CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
Andrey Konovalovb938fcf42018-12-28 00:29:49 -080018CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
Peter Zijlstra57b78a622019-04-03 09:39:50 +020019CFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
Andrey Konovalov2bd926b2018-12-28 00:29:53 -080020CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector)
Andrey Ryabinin0b24bec2015-02-13 14:39:17 -080021
Andrey Konovalov2bd926b2018-12-28 00:29:53 -080022obj-$(CONFIG_KASAN) := common.o init.o report.o
Andrey Konovalov11cd3cd2018-12-28 00:30:38 -080023obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o
24obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o