Re: [PATCH] kbuild: keep .modinfo when vmlinux is linked with --gc-sections

From: Nathan Chancellor

Date: Mon Sep 28 2026 - 08:04:20 EST


On Mon, Sep 28, 2026 at 12:15:46PM +0100, Lorenzo Stoakes (ARM) wrote:
> Nathan - do you want me to fold this into the 1st patch of my series on respin
> or fine to treat separately?

Let's keep it separate since it is an existing issue and might want
to be backported in its own right.

I applied a subset of your series to kbuild-next-speedups to begin
exposing the "ready to go" (IMO at least) bits to -next (good thing
since it found this). You should be able to rebase on that for
subsequent versions, although maybe we still want to include those
changes for
others to continue to review but *shrug*. If there are follow up review
comments, just send delta patches and I will decide if I want to keep
them separate or squash them.

--
Cheers,
Nathan