mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip: objtool/core] objtool/klp: Also demangle global objects
       [not found] <20260305231531.3847295-5-song@kernel.org>
@ 2026-03-09 19:59 ` tip-bot2 for Song Liu
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Song Liu @ 2026-03-09 19:59 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Song Liu, Josh Poimboeuf, x86, linux-kernel

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@kernel.org>
AuthorDate:    Thu, 05 Mar 2026 15:15:28 -08:00
Committer:     Josh Poimboeuf <jpoimboe@kernel.org>
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@kernel.org>
Link: https://patch.msgid.link/20260305231531.3847295-5-song@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
---
 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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-09 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20260305231531.3847295-5-song@kernel.org>
2026-03-09 19:59 ` [tip: objtool/core] objtool/klp: Also demangle global objects tip-bot2 for Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®