mirror of
https://github.com/dynup/kpatch
synced 2025-02-08 13:06:52 +00:00
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. |
||
---|---|---|
.. | ||
insn | ||
create-diff-object.c | ||
kpatch-build | ||
kpatch-elf.c | ||
kpatch-elf.h | ||
kpatch-gcc | ||
list.h | ||
log.h | ||
lookup.c | ||
lookup.h | ||
Makefile |