# SPDX-License-Identifier: GPL-2.0 obj-$([31mCONFIG_LKDTM[0m) += lkdtm.o lkdtm-$([31mCONFIG_LKDTM[0m) += core.o lkdtm-$([31mCONFIG_LKDTM[0m) += bugs.o lkdtm-$([31mCONFIG_LKDTM[0m) += heap.o lkdtm-$([31mCONFIG_LKDTM[0m) += perms.o lkdtm-$([31mCONFIG_LKDTM[0m) += refcount.o lkdtm-$([31mCONFIG_LKDTM[0m) += rodata_objcopy.o lkdtm-$([31mCONFIG_LKDTM[0m) += usercopy.o lkdtm-$([31mCONFIG_LKDTM[0m) += stackleak.o lkdtm-$([31mCONFIG_LKDTM[0m) += cfi.o KASAN_SANITIZE_stackleak.o := n KCOV_INSTRUMENT_rodata.o := n OBJCOPYFLAGS := OBJCOPYFLAGS_rodata_objcopy.o := \ --rename-section .text=.rodata,alloc,readonly,load targets += rodata.o rodata_objcopy.o $(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE $(call if_changed,objcopy) |