]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Remove reloc symbol type checks in get_alt_entry()
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 4 Oct 2021 17:07:50 +0000 (10:07 -0700)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 5 Oct 2021 19:03:20 +0000 (12:03 -0700)
commitd95064cacfd5345c49acfe9604c890747f08a5a7
treecc9e6401bd6542b6e2be315a6f9404efba028e6a
parent64e4eef3989145850c26208b1f0481f118a4a894
objtool: Remove reloc symbol type checks in get_alt_entry()

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: 2e03c6c930e2 ("objtool: Teach get_alt_entry() about more relocation types")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/feadbc3dfb3440d973580fad8d3db873cbfe1694.1633367242.git.jpoimboe@redhat.com
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: x86@kernel.org
Cc: Miroslav Benes <mbenes@suse.cz>
Cc: linux-kernel@vger.kernel.org
tools/objtool/special.c