2018-03-07 01:58:09 +03:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_LKDTM) += lkdtm.o
|
|
|
|
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += core.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += bugs.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += heap.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += perms.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += refcount.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += rodata_objcopy.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += usercopy.o
|
2018-08-17 01:17:00 +03:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += stackleak.o
|
2019-08-08 21:37:45 +03:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += cfi.o
|
2018-03-07 01:58:09 +03:00
|
|
|
|
2018-08-17 01:17:00 +03:00
|
|
|
KASAN_SANITIZE_stackleak.o := n
|
2018-03-07 01:58:09 +03:00
|
|
|
KCOV_INSTRUMENT_rodata.o := n
|
|
|
|
|
|
|
|
OBJCOPYFLAGS :=
|
|
|
|
OBJCOPYFLAGS_rodata_objcopy.o := \
|
2019-05-15 21:24:41 +03:00
|
|
|
--rename-section .text=.rodata,alloc,readonly,load
|
2018-03-07 01:58:09 +03:00
|
|
|
targets += rodata.o rodata_objcopy.o
|
|
|
|
$(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE
|
|
|
|
$(call if_changed,objcopy)
|