]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Remove trailing '_' in demangle_name()
authorSong Liu <song@kernel.org>
Thu, 5 Mar 2026 23:15:26 +0000 (15:15 -0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 6 Mar 2026 16:08:30 +0000 (08:08 -0800)
commita3f28d2072452edb377eaad01375445dbace6771
tree1e61c91ef40548c9875b7dce2dd3cf3df60ba7e1
parenta1cbaff2ea23645f0a94fdfa721aef202aebdf86
objtool/klp: Remove trailing '_' in demangle_name()

With CONFIG_LTO_CLANG_THIN, it is possible to have nested __UNIQUE_ID_,
such as:

  __UNIQUE_ID_addressable___UNIQUE_ID_pci_invalid_bar_694_695

To remove both trailing numbers, also remove trailing '_'.

Also add comments to demangle_name().

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