objtool: Make jump label hack optional
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:39 +0000 (09:50 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Apr 2022 10:32:04 +0000 (12:32 +0200)
commit4ab7674f5951ac6a8ac4fa8828090edb64a4771f
treeacd05dfd8faea515ddc411501bd25627da4cd148
parent26e176896a5bb9222ae3433da902edd2566a61a4
objtool: Make jump label hack optional

Objtool secretly does a jump label hack to overcome the limitations of
the toolchain.  Make the hack explicit (and optional for other arches)
by turning it into a cmdline option and kernel config option.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/3bdcbfdd27ecb01ddec13c04bdf756a583b13d24.1650300597.git.jpoimboe@redhat.com
arch/Kconfig
arch/x86/Kconfig
arch/x86/include/asm/jump_label.h
scripts/Makefile.build
scripts/link-vmlinux.sh
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h