Kees Cook | 039a1c42 | 2018-03-06 14:58:09 -0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | obj-$(CONFIG_LKDTM) += lkdtm.o |
| 3 | |
| 4 | lkdtm-$(CONFIG_LKDTM) += core.o |
| 5 | lkdtm-$(CONFIG_LKDTM) += bugs.o |
| 6 | lkdtm-$(CONFIG_LKDTM) += heap.o |
| 7 | lkdtm-$(CONFIG_LKDTM) += perms.o |
| 8 | lkdtm-$(CONFIG_LKDTM) += refcount.o |
| 9 | lkdtm-$(CONFIG_LKDTM) += rodata_objcopy.o |
| 10 | lkdtm-$(CONFIG_LKDTM) += usercopy.o |
| 11 | |
| 12 | KCOV_INSTRUMENT_rodata.o := n |
| 13 | |
| 14 | OBJCOPYFLAGS := |
| 15 | OBJCOPYFLAGS_rodata_objcopy.o := \ |
| 16 | --set-section-flags .text=alloc,readonly \ |
| 17 | --rename-section .text=.rodata |
| 18 | targets += rodata.o rodata_objcopy.o |
| 19 | $(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE |
| 20 | $(call if_changed,objcopy) |