diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 03c3321..4f1bb21 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1580,7 +1580,8 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf) rela->type == R_X86_64_32S) add_off = 0; else if (rela->type == R_X86_64_PC32 || - rela->type == R_X86_64_PLT32) { + rela->type == R_X86_64_PLT32 || + rela->type == R_X86_64_NONE) { struct insn insn; rela_insn(relasec, rela, &insn); add_off = (unsigned int)((long)insn.next_byte -