Thread (3 messages) 3 messages, 2 authors, 2025-11-18

Re: [PATCH] modpost: amend ppc symnames for -Os build

From: René Rebe <hidden>
Date: 2025-11-18 17:19:25
Also in: linux-kbuild

Hey Christophe,

thank you for your quick review!

On Tue, 18 Nov 2025 15:25:14 +0100, Christophe Leroy [off-list ref] wrote:
Le 18/11/2025 à 13:17, René Rebe a écrit :
quoted
[Vous ne recevez pas souvent de courriers de
rene@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.dehttps://t2linux.comhttps://patreon.com/renerebe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help