Re: [PATCH 16/48] objtool/klp: Fix relocation conversion failures for R_X86_64_NONE
From: Song Liu
Date: Fri Apr 24 2026 - 17:35:30 EST
On Wed, Apr 22, 2026 at 9:06 PM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> Objtool has some hacks which NOP out certain calls/jumps and replace
> their relocations with R_X86_64_NONE. The klp-diff relocation
> extraction code will error out when trying to copy these relocations due
> to their negative addend, which would only makes sense for a PC-relative
> branch instruction. Just ignore them.
>
> Fixes: dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files")
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Acked-by: Song Liu <song@xxxxxxxxxx>