1 # SPDX-License-Identifier: GPL-2.0
2 obj-
$(CONFIG_LKDTM
) += lkdtm.o
4 lkdtm-
$(CONFIG_LKDTM
) += core.o
5 lkdtm-
$(CONFIG_LKDTM
) += bugs.o
6 lkdtm-
$(CONFIG_LKDTM
) += heap.o
7 lkdtm-
$(CONFIG_LKDTM
) += perms.o
8 lkdtm-
$(CONFIG_LKDTM
) += refcount.o
9 lkdtm-
$(CONFIG_LKDTM
) += rodata_objcopy.o
10 lkdtm-
$(CONFIG_LKDTM
) += usercopy.o
11 lkdtm-
$(CONFIG_LKDTM
) += stackleak.o
12 lkdtm-
$(CONFIG_LKDTM
) += cfi.o
14 KASAN_SANITIZE_stackleak.o
:= n
15 KCOV_INSTRUMENT_rodata.o
:= n
18 OBJCOPYFLAGS_rodata_objcopy.o
:= \
19 --rename-section .text
=.rodata
,alloc
,readonly
,load
20 targets
+= rodata.o rodata_objcopy.o
21 $(obj
)/rodata_objcopy.o
: $(obj
)/rodata.o FORCE
22 $(call if_changed
,objcopy
)