]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Generalize elf_create_symbol()
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:47 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:46:48 +0000 (14:46 -0700)
commitdd2c29aafde7653839791d3073515b62e5df1f4d
tree12b4758c175cc58a4c36f41644b26a9d6891d66d
parent02cf323a7ee07621f47369c547ae7c7505a7312a
objtool: Generalize elf_create_symbol()

In preparation for the objtool klp diff subcommand, broaden the
elf_create_symbol() interface to give callers more control and reduce
duplication of some subtle setup logic.

While at it, make elf_create_symbol() and elf_create_section_symbol()
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>
tools/objtool/elf.c
tools/objtool/include/objtool/elf.h