On 4/22/25 7:17 AM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the powerpc-fixes tree, today's linux-next build
> (powerpc_ppc64_defconfig) produced these warnings:
>
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD segment with RWX
> permissions
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/zImage.pseries has a LOAD segment with RWX
> permissions
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/zImage.pmac has a LOAD segment with RWX
> permissions
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/dtbImage.ps3 has a LOAD segment with RWX
> permissions
>
I cant recreate this in both my x86_64 cross build and ppc64 build with dash.
I tried both ppc64_defconfig and pseries_le_defconfig compilation.
x86_64 dash version : dash-0.5.12-3.fc40.x86_64
powerpc dash version : dash-0.5.12-4.fc41.ppc64le
Can you share the dash version
Maddy
> Introduced by commit
>
> b2accfe7ca5b ("powerpc/boot: Check for ld-option support")
>
> POSIX shell (in particular dash) does not recognise "&>" - you need to
> use ">/dev/null 2>&1". (My /bin/sh is /bin/dash)
>