kpatch/kpatch-build
Josh Poimboeuf 1330b4a3e5 kpatch-build: fix 'undefined reference to kpatch_shadow_*' errors
When building the patched version of the kernel, vmlinux has to be
linked with the '--warn-unresolved-symbols' linker flag.  Otherwise the
link will fail if the patch uses kpatch-specific symbols like
kpatch_shadow_alloc() and friends.

As of upstream Linux commit b36fad65d61f ("kbuild: Initialize exported
variables"), LDFLAGS_vmlinux= no longer works from the command line,
resulting in '--warn-unresolved-symbols' no longer getting set.

Instead we can use kpatch-gcc to pass the flag to the linker.

Fixes #627.
2016-12-05 20:22:11 -06: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: Update fixup offsets in .rela__ex_table 2016-11-24 09:15:48 +00:00
kpatch-build kpatch-build: fix 'undefined reference to kpatch_shadow_*' errors 2016-12-05 20:22:11 -06:00
kpatch-elf.c kpatch-elf: make is_bundleable() a static function 2016-07-12 14:45:18 -07:00
kpatch-elf.h kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00
kpatch-gcc kpatch-build: fix 'undefined reference to kpatch_shadow_*' errors 2016-12-05 20:22:11 -06:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00
lookup.c livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
lookup.h livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
Makefile kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00