[PATCH] kbuild: Split .modinfo out from ELF_DETAILS

Nathan Chancellor nathan at kernel.org
Thu Mar 5 11:36:32 AEDT 2026


On Wed, 25 Feb 2026 15:02:51 -0700, Nathan Chancellor wrote:
> Commit 3e86e4d74c04 ("kbuild: keep .modinfo section in
> vmlinux.unstripped") added .modinfo to ELF_DETAILS while removing it
> from DISCARDS, as it was needed in vmlinux.unstripped and ELF_DETAILS
> was present in all architecture specific vmlinux linker scripts. While
> this shuffle is fine for vmlinux, ELF_DETAILS and DISCARDS may be used
> by other linker scripts, such as the s390 and x86 compressed boot
> images, which may not expect to have a modinfo section. In certain
> circumstances, this could result in a bootloader failing to load the
> compressed kernel [1].
> 
> [...]

Applied to

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-fixes

Thanks!

[1/1] kbuild: Split .modinfo out from ELF_DETAILS
      https://git.kernel.org/kbuild/c/8678591b47469

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.

Best regards,
-- 
Nathan Chancellor <nathan at kernel.org>



More information about the Linuxppc-dev mailing list