linux/drivers/misc/lkdtm/Makefile
<<
>>
Prefs
   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
  11lkdtm-$(CONFIG_LKDTM)           += stackleak.o
  12lkdtm-$(CONFIG_LKDTM)           += cfi.o
  13lkdtm-$(CONFIG_LKDTM)           += fortify.o
  14lkdtm-$(CONFIG_PPC_BOOK3S_64)   += powerpc.o
  15
  16KASAN_SANITIZE_rodata.o         := n
  17KASAN_SANITIZE_stackleak.o      := n
  18KCOV_INSTRUMENT_rodata.o        := n
  19CFLAGS_REMOVE_rodata.o          += $(CC_FLAGS_LTO)
  20
  21OBJCOPYFLAGS :=
  22OBJCOPYFLAGS_rodata_objcopy.o   := \
  23                        --rename-section .noinstr.text=.rodata,alloc,readonly,load
  24targets += rodata.o rodata_objcopy.o
  25$(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE
  26        $(call if_changed,objcopy)
  27