[tip: objtool/core] objtool/klp: Also demangle global objects
From: tip-bot2 for Song Liu
Date: Mon Mar 09 2026 - 16:05:39 EST
The following commit has been merged into the objtool/core branch of tip:
Commit-ID: 8206277746d5c6ae300e7e062a0d9238ed59cc7f
Gitweb: https://git.kernel.org/tip/8206277746d5c6ae300e7e062a0d9238ed59cc7f
Author: Song Liu <song@xxxxxxxxxx>
AuthorDate: Thu, 05 Mar 2026 15:15:28 -08:00
Committer: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
CommitterDate: Fri, 06 Mar 2026 08:08:32 -08:00
objtool/klp: Also demangle global objects
With CONFIG_LTO_CLANG_THIN, it is possible to have global __UNIQUE_ID,
such as:
FUNC GLOBAL HIDDEN 19745 __UNIQUE_ID_quirk_amd_nb_node_458
Also demangle global objects.
Signed-off-by: Song Liu <song@xxxxxxxxxx>
Link: https://patch.msgid.link/20260305231531.3847295-5-song@xxxxxxxxxx
Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
tools/objtool/elf.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index b2d73c4..7e019f1 100644
--- a/tools/objtool/elf.c
+++ b/tools/objtool/elf.c
@@ -488,9 +488,6 @@ static const char *demangle_name(struct symbol *sym)
char *str;
ssize_t len;
- if (!is_local_sym(sym))
- return sym->name;
-
if (!is_func_sym(sym) && !is_object_sym(sym))
return sym->name;