]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Print addresses with alternative instructions
authorAlexandre Chartre <alexandre.chartre@oracle.com>
Fri, 21 Nov 2025 09:53:31 +0000 (10:53 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 21 Nov 2025 14:30:13 +0000 (15:30 +0100)
commit15e7ad8667b9d1fd4b6bdf06472812416453b7b2
tree90442f699e91db0aeee8f9e2323f436860b50cc4
parenta4f1599672e7bf494d79928a38fd6aa873e2e50c
objtool: Print addresses with alternative instructions

All alternatives are disassemble side-by-side when using the --disas
option. However the address of each instruction is not printed because
instructions from different alternatives are not necessarily aligned.

Change this behavior to print the address of each instruction. Spaces
will appear between instructions from the same alternative when
instructions from different alternatives do not have the same alignment.

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-22-alexandre.chartre@oracle.com
tools/objtool/disas.c