Re: [PATCH v8 3/8] kbuild: keep .modinfo section in vmlinux.unstripped

From
Nicolas Schier <nsc@kernel.org>
Date
2025-09-24 06:40:09
Also in
linux-kbuild, lkml
Reply to
Alexey Gladkov, 2025-09-18
On Thu, Sep 18, 2025 at 10:05:47AM +0200, Alexey Gladkov wrote:
From: Masahiro Yamada <masahiroy@kernel.org>

Keep the .modinfo section during linking, but strip it from the final
vmlinux.

Adjust scripts/mksysmap to exclude modinfo symbols from kallsyms.

This change will allow the next commit to extract the .modinfo section
from the vmlinux.unstripped intermediate.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Alexey Gladkov <legion@kernel.org>
---
 include/asm-generic/vmlinux.lds.h | 2 +-
 scripts/Makefile.vmlinux          | 7 +++++--
 scripts/mksysmap                  | 3 +++
 3 files changed, 9 insertions(+), 3 deletions(-)
Thanks!

Reviewed-by: Nicolas Schier <nsc@kernel.org>

-- 
Nicolas
Thread (22 messages) 22 messages, 4 authors, last reply 2025-10-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help