[PATCH] modpost: amend ppc symnames for -Os build
René Rebe
rene at exactco.de
Wed Nov 19 04:19:28 AEDT 2025
Hey Christophe,
thank you for your quick review!
On Tue, 18 Nov 2025 15:25:14 +0100, Christophe Leroy <christophe.leroy at csgroup.eu> wrote:
> Le 18/11/2025 à 13:17, René Rebe a écrit :
> > [Vous ne recevez pas souvent de courriers de
> > rene at exactco.de. Découvrez pourquoi ceci est important à
> > https://aka.ms/LearnAboutSenderIdentification ]
> > Building a size optimized ppc kernel, gcc emmits more symbols than
> > currently allowed listed in scripts/mod/modpost.c. Add to fix:
>
> You should say when the problem started to happen, and what those
I guess always, or at least for a long time with -Os functions have a
certain pattern or size. Maybe the size of amdgpu and certainly the
DC_FP use triggered the floating point ones for me.
> functions are supposed to save and restore.
>
> As an exemple see commit 8fe9c93e7453 ("powerpc: Add vr save/restore
> functions")
>
> Also confirm it is only needed on powerpc64, if so make it clear in
> the commit message.
The fp ones can only occur for ppc64 right now as long as:
ARCH_HAS_KERNEL_FPU_SUPPORT if PPC64 && PPC_FPU
If the gpr ones are emitted by gcc for ppc(32) I would need to
specifically review. As it is mostly the more modern ppc64, I'll use
that for v2 then, ...
René
--
René Rebe, ExactCODE GmbH, Berlin, Germany
https://exactco.de • https://t2linux.com • https://patreon.com/renerebe
More information about the Linuxppc-dev
mailing list