Re: [PATCH] kbuild: Use --force-group-allocation when linking modules
Nathan Chancellor <[email protected]> Mon, 29 Jun 2026 18:54:32 -0700
| Newsgroups | org.kernel.vger.linux-kbuild,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-modules |
|---|---|
| Message-ID | <178278447248.3414597.4179963162938722029.b4-review@b4> |
On Fri, 12 Jun 2026 15:31:37 +0200, Petr Pavlu <[email protected]> wrote: > Specific code, such as outlined KASAN checks, may be placed in > COMDAT-deduplicated sections. When linking modules as relocatable files, > the linker by default preserves such groups, potentially leaving multiple > copies in the resulting modules and unnecessary group metadata. > > Use --force-group-allocation to have the linker resolve the COMDAT groups > and place their members as regular sections. The option is available from > ld.bfd 2.29 and ld.lld 19.1.0. > > [...] Reviewed-by: Nathan Chancellor <[email protected]> -- Cheers, Nathan