On 11/23/25 15:57, Christophe Leroy (CS GROUP) wrote:


Le 23/11/2025 à 13:13, René Rebe a écrit :
Building a size optimized ppc64 kernel (-Os), gcc emits more FP
save/restore symbols, that the linker generates on demand into the
.sfpr section. Explicitly allow-list those in scripts/mod/modpost.c,
too. They are needed for the amdgpu in-kernel floating point support.

Would have been interested to know with which version of GCC the problem started.

I can reproduce the modpost errors on GCC 15.2 and GCC 11.5.

Same kernel .config builds ok with CLANG 20.1.8 however.

By the way you seem to fix the problem for modules, but does it also work when amdgpu is in kernel ? I would have expected a need to add functions in arch/powerpc/lib/crtsavres.S as well, just like following commits:

If I build amdgpu statically into the kernel I don't get the modpost errors, the build finishes successfully. Only building amdgpu as module leads to these errors Rene reported.

Regards,
Erhard

Reply via email to