1039a1c42SKees Cook# SPDX-License-Identifier: GPL-2.0 2039a1c42SKees Cookobj-$(CONFIG_LKDTM) += lkdtm.o 3039a1c42SKees Cook 4039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += core.o 5039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += bugs.o 6039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += heap.o 7039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += perms.o 8039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += refcount.o 9039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += rodata_objcopy.o 10039a1c42SKees Cooklkdtm-$(CONFIG_LKDTM) += usercopy.o 11039a1c42SKees Cook 12039a1c42SKees CookKCOV_INSTRUMENT_rodata.o := n 13039a1c42SKees Cook 14039a1c42SKees CookOBJCOPYFLAGS := 15039a1c42SKees CookOBJCOPYFLAGS_rodata_objcopy.o := \ 16039a1c42SKees Cook --set-section-flags .text=alloc,readonly \ 17039a1c42SKees Cook --rename-section .text=.rodata 18039a1c42SKees Cooktargets += rodata.o rodata_objcopy.o 19039a1c42SKees Cook$(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE 20039a1c42SKees Cook $(call if_changed,objcopy) 21