linux/tools/objtool
Josh Poimboeuf 5a406031d0 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
2025-03-17 11:36:01 +01:00
..
arch objtool/LoongArch: Add support for goto table 2025-03-12 15:43:39 -07:00
Documentation objtool: Update documentation 2025-03-17 11:36:00 +01:00
include/objtool objtool: Add --output option 2025-03-17 11:36:01 +01:00
.gitignore objtool: Install libsubcmd in build 2023-01-30 16:27:46 -08:00
Build objtool: Install libsubcmd in build 2023-01-30 16:27:46 -08:00
builtin-check.c objtool: Add --output option 2025-03-17 11:36:01 +01:00
check.c objtool: Increase per-function WARN_FUNC() rate limit 2025-03-17 11:36:00 +01:00
elf.c objtool: Add --output option 2025-03-17 11:36:01 +01:00
Makefile objtool: Hide unnecessary compiler error message 2025-03-12 15:43:38 -07:00
noreturns.h objtool: Add bch2_trans_unlocked_or_in_restart_error() to bcachefs noreturns 2025-02-25 10:16:31 -08:00
objtool.c objtool: Add --output option 2025-03-17 11:36:01 +01:00
orc_dump.c objtool: Add --output option 2025-03-17 11:36:01 +01:00
orc_gen.c objtool/x86: Separate arch-specific and generic parts 2024-03-11 22:23:47 +08:00
special.c x86/alternatives: Add nested alternatives macros 2024-06-11 17:13:08 +02:00
sync-check.sh objtool: Add objtool_types.h 2023-03-23 23:18:56 +01:00
weak.c objtool: Ditch subcommands 2022-04-22 12:32:01 +02:00