]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Match symbols based on demangled_name for global variables
authorSong Liu <song@kernel.org>
Thu, 5 Mar 2026 23:15:30 +0000 (15:15 -0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 6 Mar 2026 16:08:33 +0000 (08:08 -0800)
commitcdea5cadb0ca403b1929f8d29929c0eda0f715d6
tree0395cd61a0fa60afe7b5941032a1fa7319695ab2
parent020b71dcafeeececb78d9ee9e5a2e68e8e05e922
objtool/klp: Match symbols based on demangled_name for global variables

correlate_symbols() will always try to match full name first. If there is
no match, try match only demangled_name.

In very rare cases, it is possible to have multiple foo.llvm.<hash> in
the same kernel. Whenever there is ambiguity like this, fail the klp diff.

Signed-off-by: Song Liu <song@kernel.org>
Link: https://patch.msgid.link/20260305231531.3847295-7-song@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/elf.c
tools/objtool/include/objtool/elf.h
tools/objtool/klp-diff.c