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

Nathan Chancellor
2025-09-17T01:10:15Z

On Tue, Sep 16, 2025 at 03:28:09PM +0200, Nicolas Schier wrote:
> yeah, it's actually because I dislike modifying vmlinux.unstripped in
> the vmlinux rule.
>
> But it may be that Nathan does not see it this way.

Yeah, I would agree that it is good form to avoid modifying the inputs
of a rule.

This warning is pretty annoying since it is intentional but we do not
have great tools to hide just this one instance it seems... This is
probably worth a comment.

It would be nice if this section could be marked as NOLOAD from the
beginning but that will mess with extracting .modinfo via objcopy from
my brief testing.

Cheers,
Nathan