From: Song Liu <song@kernel.org>
To: live-patching@vger.kernel.org
Cc: jpoimboe@kernel.org, jikos@kernel.org, mbenes@suse.cz,
pmladek@suse.com, joe.lawrence@redhat.com, kernel-team@meta.com,
Song Liu <song@kernel.org>
Subject: [PATCH v2 4/8] objtool/klp: Also demangle global objects
Date: Thu, 19 Feb 2026 14:22:35 -0800 [thread overview]
Message-ID: <20260219222239.3650400-5-song@kernel.org> (raw)
In-Reply-To: <20260219222239.3650400-1-song@kernel.org>
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>
---
tools/objtool/elf.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index c784a0484270..d66452d66fb4 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;
--
2.47.3
next prev parent reply other threads:[~2026-02-19 22:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-19 22:22 [PATCH v2 0/8] objtool/klp: klp-build LTO support and tests Song Liu
2026-02-19 22:22 ` [PATCH v2 1/8] objtool/klp: Remove redundent strcmp in correlate_symbols Song Liu
2026-02-19 22:22 ` [PATCH v2 2/8] objtool/klp: Remove trailing '_' in demangle_name() Song Liu
2026-02-19 22:22 ` [PATCH v2 3/8] objtool/klp: Use sym->demangled_name for symbol_name hash Song Liu
2026-02-19 22:22 ` Song Liu [this message]
2026-02-19 22:22 ` [PATCH v2 5/8] objtool/klp: Remove .llvm suffix in demangle_name() Song Liu
2026-02-19 22:22 ` [PATCH v2 6/8] objtool/klp: Match symbols based on demangled_name for global variables Song Liu
2026-02-23 22:56 ` Josh Poimboeuf
2026-02-24 0:07 ` Song Liu
2026-02-24 21:10 ` Josh Poimboeuf
2026-02-19 22:22 ` [PATCH v2 7/8] objtool/klp: Correlate locals to globals Song Liu
2026-02-23 22:58 ` Josh Poimboeuf
2026-02-24 0:08 ` Song Liu
2026-02-19 22:22 ` [PATCH v2 8/8] livepatch: Add tests for klp-build toolchain Song Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260219222239.3650400-5-song@kernel.org \
--to=song@kernel.org \
--cc=jikos@kernel.org \
--cc=joe.lawrence@redhat.com \
--cc=jpoimboe@kernel.org \
--cc=kernel-team@meta.com \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=pmladek@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox