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

From: Nicolas Schier
Date: Wed Sep 24 2025 - 02:40:20 EST


On Thu, Sep 18, 2025 at 10:05:47AM +0200, Alexey Gladkov wrote:
> From: Masahiro Yamada <masahiroy@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Signed-off-by: Alexey Gladkov <legion@xxxxxxxxxx>
> ---
> 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@xxxxxxxxxx>

--
Nicolas