objtool: Rewrite jump_label instructions
authorPeter Zijlstra <peterz@infradead.org>
Thu, 6 May 2021 19:34:03 +0000 (21:34 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 12:54:56 +0000 (14:54 +0200)
commit6d37b83c5d79ef5996cc49c3e3ac3d8ecd8c7050
tree1432c860d584cab33eb9d9c253bd7a819c108c1a
parentcbf82a3dc241aea82b941a872ed5c52f6af527ea
objtool: Rewrite jump_label instructions

When a jump_entry::key has bit1 set, rewrite the instruction to be a
NOP. This allows the compiler/assembler to emit JMP (and thus decide
on which encoding to use).

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210506194158.091028792@infradead.org
tools/objtool/check.c