2018-03-07 05:58:09 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_LKDTM) += lkdtm.o
|
|
|
|
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += core.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += bugs.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += heap.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += perms.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += refcount.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += rodata_objcopy.o
|
|
|
|
lkdtm-$(CONFIG_LKDTM) += usercopy.o
|
2018-08-17 05:17:00 +07:00
|
|
|
lkdtm-$(CONFIG_LKDTM) += stackleak.o
|
2018-03-07 05:58:09 +07:00
|
|
|
|
2018-08-17 05:17:00 +07:00
|
|
|
KASAN_SANITIZE_stackleak.o := n
|
2018-03-07 05:58:09 +07:00
|
|
|
KCOV_INSTRUMENT_rodata.o := n
|
|
|
|
|
|
|
|
OBJCOPYFLAGS :=
|
|
|
|
OBJCOPYFLAGS_rodata_objcopy.o := \
|
2019-05-16 01:24:41 +07:00
|
|
|
--rename-section .text=.rodata,alloc,readonly,load
|
2018-03-07 05:58:09 +07:00
|
|
|
targets += rodata.o rodata_objcopy.o
|
|
|
|
$(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE
|
|
|
|
$(call if_changed,objcopy)
|