Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Andrey Ryabinin | 0b24bec | 2015-02-13 14:39:17 -0800 | [diff] [blame] | 2 | KASAN_SANITIZE := n |
Andrey Konovalov | bffa986 | 2018-12-28 00:29:45 -0800 | [diff] [blame] | 3 | UBSAN_SANITIZE_common.o := n |
Andrey Konovalov | b938fcf4 | 2018-12-28 00:29:49 -0800 | [diff] [blame] | 4 | UBSAN_SANITIZE_generic.o := n |
Peter Zijlstra | 57b78a62 | 2019-04-03 09:39:50 +0200 | [diff] [blame] | 5 | UBSAN_SANITIZE_generic_report.o := n |
Andrey Konovalov | 2bd926b | 2018-12-28 00:29:53 -0800 | [diff] [blame] | 6 | UBSAN_SANITIZE_tags.o := n |
Dmitry Vyukov | 5c9a875 | 2016-03-22 14:27:30 -0700 | [diff] [blame] | 7 | KCOV_INSTRUMENT := n |
Andrey Ryabinin | 0b24bec | 2015-02-13 14:39:17 -0800 | [diff] [blame] | 8 | |
Torsten Duwe | e209274 | 2019-02-08 16:10:14 +0100 | [diff] [blame] | 9 | CFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE) |
| 10 | CFLAGS_REMOVE_generic.o = $(CC_FLAGS_FTRACE) |
Linus Torvalds | c620f7b | 2019-05-06 17:54:22 -0700 | [diff] [blame] | 11 | CFLAGS_REMOVE_generic_report.o = $(CC_FLAGS_FTRACE) |
Torsten Duwe | e209274 | 2019-02-08 16:10:14 +0100 | [diff] [blame] | 12 | CFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE) |
Andrey Konovalov | dc15a8a | 2019-02-20 22:20:20 -0800 | [diff] [blame] | 13 | |
Andrey Ryabinin | 0b24bec | 2015-02-13 14:39:17 -0800 | [diff] [blame] | 14 | # Function splitter causes unnecessary splits in __asan_load1/__asan_store1 |
| 15 | # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533 |
Andrey Konovalov | bffa986 | 2018-12-28 00:29:45 -0800 | [diff] [blame] | 16 | |
| 17 | CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) |
Andrey Konovalov | b938fcf4 | 2018-12-28 00:29:49 -0800 | [diff] [blame] | 18 | CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) |
Peter Zijlstra | 57b78a62 | 2019-04-03 09:39:50 +0200 | [diff] [blame] | 19 | CFLAGS_generic_report.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) |
Andrey Konovalov | 2bd926b | 2018-12-28 00:29:53 -0800 | [diff] [blame] | 20 | CFLAGS_tags.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) |
Andrey Ryabinin | 0b24bec | 2015-02-13 14:39:17 -0800 | [diff] [blame] | 21 | |
Andrey Konovalov | 2bd926b | 2018-12-28 00:29:53 -0800 | [diff] [blame] | 22 | obj-$(CONFIG_KASAN) := common.o init.o report.o |
Andrey Konovalov | 11cd3cd | 2018-12-28 00:30:38 -0800 | [diff] [blame] | 23 | obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o |
| 24 | obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o |