]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Identify the different types of alternatives
authorAlexandre Chartre <alexandre.chartre@oracle.com>
Fri, 21 Nov 2025 09:53:23 +0000 (10:53 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 21 Nov 2025 14:30:11 +0000 (15:30 +0100)
commitd490aa21973fe66ec35ad825c19f88ac7f7abb27
tree9d4b97f57ea2b3c5834f2ce41531657d93f7d03a
parent26a453fb5637907a538d6ea5ef23651142811e15
objtool: Identify the different types of alternatives

Alternative code, including jump table and exception table, is represented
with the same struct alternative structure. But there is no obvious way to
identify whether the struct represents alternative instructions, a jump
table or an exception table.

So add a type to struct alternative to clearly identify the type of
alternative.

Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://patch.msgid.link/20251121095340.464045-14-alexandre.chartre@oracle.com
tools/objtool/check.c
tools/objtool/include/objtool/check.h