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