linux/tools/objtool
Alexandre Chartre d490aa2197 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
History 2025-11-21 15:30:11 +01:00
..
arch objtool: Improve register reporting during function validation 2025-11-21 15:30:10 +01:00
Documentation Revert "objtool: Warn on functions with ambiguous -ffunction-sections section names" 2025-11-21 10:04:10 +01:00
include/objtool objtool: Identify the different types of alternatives 2025-11-21 15:30:11 +01:00
.gitignore objtool: Disassemble code with libopcodes instead of running objdump 2025-11-21 15:30:07 +01:00
Build objtool: Add option to trace function validation 2025-11-21 15:30:09 +01:00
builtin-check.c objtool: Add option to trace function validation 2025-11-21 15:30:09 +01:00
builtin-klp.c objtool/klp: Add post-link subcommand to finalize livepatch modules 2025-10-14 14:50:18 -07:00
check.c objtool: Identify the different types of alternatives 2025-11-21 15:30:11 +01:00
disas.c objtool: Add option to trace function validation 2025-11-21 15:30:09 +01:00
elf.c objtool: Remove second pass of .cold function correlation 2025-11-21 10:04:08 +01:00
klp-diff.c livepatch/klp-build: Introduce klp-build script for generating livepatch modules 2025-10-14 14:50:19 -07:00
klp-post-link.c objtool/klp: Add post-link subcommand to finalize livepatch modules 2025-10-14 14:50:18 -07:00
Makefile objtool: Disassemble code with libopcodes instead of running objdump 2025-11-21 15:30:07 +01:00
noreturns.h x86/smpboot: Mark native_play_dead() as __noreturn 2025-10-30 08:29:41 -07:00
objtool.c objtool/klp: Add --debug option to show cloning decisions 2025-10-14 14:50:18 -07:00
orc_dump.c objtool: Add annotype() helper 2025-10-14 14:46:49 -07:00
orc_gen.c objtool: Add annotype() helper 2025-10-14 14:46:49 -07:00
special.c objtool: Add annotype() helper 2025-10-14 14:46:49 -07:00
sync-check.sh objtool/klp: Introduce klp diff subcommand for diffing object files 2025-10-14 14:50:18 -07:00
trace.c objtool: Improve register reporting during function validation 2025-11-21 15:30:10 +01:00
weak.c objtool/klp: Introduce klp diff subcommand for diffing object files 2025-10-14 14:50:18 -07:00