]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Fix --debug-checksum for duplicate symbol names
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 31 Mar 2026 04:31:47 +0000 (21:31 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:00 +0000 (21:16 -0700)
commitdef5b60dcd2256efab0e66f598419b17c425b8f5
tree383f05bec554a0ae64c3a0d12520997f261988d8
parent0333b7399587ee0aaa863ed0d13a00a6c7c64068
objtool/klp: Fix --debug-checksum for duplicate symbol names

find_symbol_by_name() only returns the first match, so
--debug-checksum=<func> silently ignores any subsequent duplicately
named functions after the first.

Fix that, along with a new for_each_sym_by_name() helper.

Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/check.c
tools/objtool/include/objtool/elf.h