Re: [PATCH] objtool: Remove reloc symbol type checks in get_alt_entry()

From: Peter Zijlstra
Date: Tue Oct 05 2021 - 04:45:11 EST


On Mon, Oct 04, 2021 at 10:07:50AM -0700, Josh Poimboeuf wrote:
> Converting a special section's relocation reference to a symbol is
> straightforward. No need for objtool to complain that it doesn't know
> how to handle it. Just handle it.
>
> This fixes the following warning:
>
> arch/x86/kvm/emulate.o: warning: objtool: __ex_table+0x4: don't know how to handle reloc symbol type: kvm_fastop_exception
>
> Fixes: 24ff65257375 ("objtool: Teach get_alt_entry() about more relocation types")
> Reported-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

Thanks!

Does not in fact apply due to Linus' patch. Fixed that up and will run
more careful tests this time :-)