]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Simplify special symbol handling in elf_update_symbol()
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:46 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:46:48 +0000 (14:46 -0700)
commit02cf323a7ee07621f47369c547ae7c7505a7312a
tree2321f60a85968e5ebfae355deda1af289cbfa738
parenta05de0a772ce423895a3b07504a9ed93ae75e912
objtool: Simplify special symbol handling in elf_update_symbol()

!sym->sec isn't actually a thing: even STT_UNDEF and other special
symbol types belong to NULL section 0.

Simplify the initialization of 'shndx' accordingly.

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