Re: [PATCH] powerpc/boot: Allow text relocations for pseries wrapper with binutils 2.46+

From: Madhavan Srinivasan

Date: Fri Jun 19 2026 - 18:01:28 EST


On Mon, 25 May 2026 21:46:01 +0530, Amit Machhiwal wrote:
> Binutils 2.46 changed the default linker behavior from '-z notext' to
> '-z text', which treats dynamic relocations in read-only segments as
> errors rather than warnings. This causes the pseries boot wrapper build
> to fail with:
>
> /usr/bin/ld.bfd: arch/powerpc/boot/wrapper.a(crt0.o): warning:
> relocation against `_platform_stack_top' in read-only section `.text'
> /usr/bin/ld.bfd: error: read-only segment has dynamic relocations
>
> [...]

Applied to powerpc/next.

[1/1] powerpc/boot: Allow text relocations for pseries wrapper with binutils 2.46+
https://git.kernel.org/powerpc/c/97f902dd4c99f8d085da5343dc58ae4f6ce7bdd9

cheers