kpatch/kpatch-build
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
..
insn insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00
create-diff-object.c create-diff-object: create intermediate .kpatch.arch section 2017-01-23 12:43:24 -08:00
create-klp-module.c create-klp-module: add new program that creates patch modules that have klp elements 2017-01-23 12:43:31 -08:00
create-kpatch-module.c create-kpatch-module: add new program that creates kpatch modules 2017-01-23 12:43:34 -08:00
kpatch-build kpatch-build: build dynrelas or klp relas depending on kernel version 2017-01-23 12:43:43 -08:00
kpatch-elf.c kpatch-elf: add find_rela_by_offset() 2017-01-23 12:43:27 -08:00
kpatch-elf.h kpatch-elf: add find_rela_by_offset() 2017-01-23 12:43:27 -08:00
kpatch-gcc kpatch-build: fix 'undefined reference to kpatch_shadow_*' errors 2016-12-05 20:22:11 -06:00
kpatch-intermediate.h create-diff-object: create intermediate .kpatch.arch section 2017-01-23 12:43:24 -08:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h log: include error.h 2017-01-23 12:42:35 -08:00
lookup.c lookup: parse Module.symvers in lookup_open() 2017-01-23 12:43:12 -08:00
lookup.h lookup: parse Module.symvers in lookup_open() 2017-01-23 12:43:12 -08:00
Makefile create-kpatch-module: add new program that creates kpatch modules 2017-01-23 12:43:34 -08:00