diff --git a/kmod/patch/Makefile b/kmod/patch/Makefile index 96d1fca..7ba0820 100644 --- a/kmod/patch/Makefile +++ b/kmod/patch/Makefile @@ -11,6 +11,7 @@ KBUILD_CFLAGS_MODULE += -mcmodel=large endif obj-m += $(KPATCH_NAME).o +ldflags-y += -T $(src)/kpatch.lds $(KPATCH_NAME)-objs += patch-hook.o kpatch.lds output.o