]> www.infradead.org Git - users/jedix/linux-maple.git/commit
objtool: Add --output option
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 14 Mar 2025 19:29:07 +0000 (12:29 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Mar 2025 10:36:01 +0000 (11:36 +0100)
commit5a406031d0719d146d2033ee4270310b1ca9a1e3
tree4df3c743470970860b84a076187c45bbf9357697
parentfdf5ff2934f4c5c6b483c906fea6e0288df36da2
objtool: Add --output option

Add option to allow writing the changed binary to a separate file rather
than changing it in place.

Libelf makes this suprisingly hard, so take the easy way out and just
copy the file before editing it.

Also steal the -o short option from --orc.  Nobody will notice ;-)

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/0da308d42d82b3bbed16a31a72d6bde52afcd6bd.1741975349.git.jpoimboe@kernel.org
tools/objtool/builtin-check.c
tools/objtool/elf.c
tools/objtool/include/objtool/builtin.h
tools/objtool/objtool.c
tools/objtool/orc_dump.c