]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Refactor prefix symbol creation code
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:04:02 +0000 (09:04 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:50:18 +0000 (14:50 -0700)
commit2058f6d1660edc4a9bda9bee627792b352121b10
treebd23f987fd9ec958611c1b7767ed453b64246344
parentebe864b55304f74c4e1a8b6c899e34446b2be424
objtool: Refactor prefix symbol creation code

The prefix symbol creation code currently ignores all errors, presumably
because some functions don't have the leading NOPs.

Shuffle the code around a bit, improve the error handling and document
why some errors are ignored.

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/check.c
tools/objtool/elf.c
tools/objtool/include/objtool/elf.h