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
12 KCOV_INSTRUMENT_rodata.o
:= n
15 OBJCOPYFLAGS_rodata_objcopy.o
:= \
16 --set-section-flags .text
=alloc
,readonly \
17 --rename-section .text
=.rodata
18 targets
+= rodata.o rodata_objcopy.o
19 $(obj
)/rodata_objcopy.o
: $(obj
)/rodata.o FORCE
20 $(call if_changed
,objcopy
)