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 11f90d1e0cSAlexander Popovlkdtm-$(CONFIG_LKDTM) += stackleak.o 12b0eb93cfSKees Cooklkdtm-$(CONFIG_LKDTM) += cfi.o 13039a1c42SKees Cook 14f90d1e0cSAlexander PopovKASAN_SANITIZE_stackleak.o := n 15039a1c42SKees CookKCOV_INSTRUMENT_rodata.o := n 16039a1c42SKees Cook 17039a1c42SKees CookOBJCOPYFLAGS := 18039a1c42SKees CookOBJCOPYFLAGS_rodata_objcopy.o := \ 19e9e08a07SNick Desaulniers --rename-section .text=.rodata,alloc,readonly,load 20039a1c42SKees Cooktargets += rodata.o rodata_objcopy.o 21039a1c42SKees Cook$(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE 22039a1c42SKees Cook $(call if_changed,objcopy) 23