]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Use sym->demangled_name for symbol_name hash
authorSong Liu <song@kernel.org>
Thu, 5 Mar 2026 23:15:27 +0000 (15:15 -0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 6 Mar 2026 16:08:32 +0000 (08:08 -0800)
commit0b8fc6adc3d9bdf161fc8ad0a1de191dba293b39
treef3f265dbb6df5d9c5df70248d8eb5a0e8b474e4b
parenta3f28d2072452edb377eaad01375445dbace6771
objtool/klp: Use sym->demangled_name for symbol_name hash

For klp-build with LTO, it is necessary to correlate demangled symbols,
e.g., correlate foo.llvm.<num 1> and foo.llvm.<num 2>. However, these two
symbols do not have the same str_hash(name). To be able to correlate the
two symbols, calculate hash based on demanged_name, so that these two
symbols have the same hash.

No functional changes intended.

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