From: Kees Cook Date: Mon, 22 Feb 2016 22:05:44 +0000 (-0800) Subject: lkdtm: split build into multiple source files X-Git-Tag: v4.8-rc1~194^2~15^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e197e2f894c0270ffabd314d73c7730b09ac63c;p=thirdparty%2Flinux.git lkdtm: split build into multiple source files Kbuild lacks a way to do in-place objcopy or other modifications of built targets, so in order to move functions into non-text sections without renaming the kernel module, the build of lkdtm must be split into separate source files. This renames lkdtm.c to lkdtm_core.c in preparation for adding the source file for the .rodata section. Signed-off-by: Kees Cook --- diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index b2fb6dbffcef0..c3cb6ad8cc371 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -57,3 +57,5 @@ obj-$(CONFIG_ECHO) += echo/ obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o obj-$(CONFIG_CXL_BASE) += cxl/ obj-$(CONFIG_PANEL) += panel.o + +lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o diff --git a/drivers/misc/lkdtm.c b/drivers/misc/lkdtm_core.c similarity index 100% rename from drivers/misc/lkdtm.c rename to drivers/misc/lkdtm_core.c