mirror of https://github.com/dynup/kpatch
b5745d7ea6
Starting with binutils 2.31, the Linux kernel may have R_X86_64_PLT32 relocations. Make sure we support them. This should be as simple as treating R_X86_64_PLT32 exactly like R_X86_64_PC32 everywhere. For more details see upstream commit torvalds/linux@b21ebf2. This also fixes the following issue seen on Fedora 29: ``` $ kpatch-build/kpatch-build -t vmlinux ./test/integration/fedora-27/convert-global-local.patch Using cache at /home/jpoimboe/.kpatch/src Testing patch file(s) Reading special section data Building original source Building patched source Extracting new and modified ELF sections ERROR: slub.o: 1 function(s) can not be patched slub.o: function __kmalloc has no fentry/mcount call, unable to patch /home/jpoimboe/git/kpatch/kpatch-build/create-diff-object: unreconcilable difference ERROR: 1 error(s) encountered. Check /home/jpoimboe/.kpatch/build.log for more details. ``` Fixes #975. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> |
||
---|---|---|
.. | ||
Makefile | ||
core.c | ||
kpatch.h | ||
shadow.c |