linux/tools/objtool
Josh Poimboeuf 243e963853 objtool: Generalize elf_create_section()
In preparation for the objtool klp diff subcommand, broaden the
elf_create_section() interface to give callers more control and reduce
duplication of some subtle setup logic.

While at it, make elf_create_rela_section() global so sections can be
created by the upcoming klp diff code.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
2025-10-14 14:46:48 -07:00
..
arch objtool: Add section/symbol type helpers 2025-10-14 14:45:25 -07:00
Documentation objtool: Fix up some outdated references to ENTRY/ENDPROC 2025-03-25 09:20:27 +01:00
include/objtool objtool: Generalize elf_create_section() 2025-10-14 14:46:48 -07: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: Reindent check_options[] 2025-10-14 14:46:48 -07:00
check.c objtool: Refactor add_jump_destinations() 2025-10-14 14:46:48 -07:00
elf.c objtool: Generalize elf_create_section() 2025-10-14 14:46:48 -07:00
Makefile objtool: Clean up compiler flag usage 2025-10-14 14:45:24 -07:00
noreturns.h x86/sev: Zap snp_abort() 2025-09-04 13:15:59 +02:00
objtool.c objtool: Change "warning:" to "error: " for fatal errors 2025-04-01 09:07:13 +02:00
orc_dump.c objtool: Change "warning:" to "error: " for fatal errors 2025-04-01 09:07:13 +02:00
orc_gen.c objtool: Generalize elf_create_section() 2025-10-14 14:46:48 -07:00
special.c objtool: Add section/symbol type helpers 2025-10-14 14:45:25 -07:00
sync-check.sh interval_tree: Sync interval_tree_generic.h with tools 2025-10-14 14:45:22 -07:00
weak.c objtool: Ditch subcommands 2022-04-22 12:32:01 +02:00