kpatch/kmod/patch
Jessica Yu b1cdc83d57 kpatch-build: build dynrelas or klp relas depending on kernel version
Introduce a second phase in the kpatch-build process that creates kpatch
modules or livepatch modules that use the new klp rela sections depending on
the kernel version being worked on. This change uses the two new programs to
either create a patch module that uses dynrelas (create-kpatch-module) or a
patch module that uses klp rela and arch sections + klp symbols marked with the
correct Elf flags (create-klp-module).

For klp patch modules, the --unique flag for ld is needed to prevent
.parainstructions and .altinstructions sections from different objects
from being merged, as arch_klp_init_object_loaded() applies these sections
per-object.
2017-01-23 12:43:43 -08:00
..
kpatch-macros.h remove obsolete warning for KPATCH_FORCE_UNSAFE 2014-10-31 11:39:14 -05:00
kpatch-patch-hook.c kmod: let kernel apply TAINT_LIVEPATCH 2017-01-12 16:05:53 -05:00
kpatch-patch.h livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
kpatch.h build and install core module with make 2014-02-18 07:44:33 -06:00
kpatch.lds.S kpatch-build: build dynrelas or klp relas depending on kernel version 2017-01-23 12:43:43 -08:00
livepatch-patch-hook.c livepatch-patch-hook: ensure compatibility with kernels < 4.7 and >= 4.7 2017-01-23 12:43:39 -08:00
Makefile kpatch-build: build dynrelas or klp relas depending on kernel version 2017-01-23 12:43:43 -08:00
patch-hook.c CONFIG_LIVE_PATCHING -> CONFIG_LIVEPATCH 2015-02-04 08:32:08 -06:00