[PATCH] powerpc/boot: Fix dash warning
Stephen Rothwell
sfr at canb.auug.org.au
Tue Apr 22 23:08:22 AEST 2025
Hi Madhavan,
On Tue, 22 Apr 2025 17:00:23 +0530 Madhavan Srinivasan <maddy at linux.ibm.com> wrote:
>
> # suppress some warnings in recent ld versions
> nowarn="-z noexecstack"
> -if [ $(${CROSS}ld -v --no-warn-rwx-segments &>/dev/null; echo $?) -eq 0 ]; then
> +if [ "$("${CROSS}"ld -v --no-warn-rwx-segments >/dev/null 2>&1; echo $?)" -eq 0 ]; then
> nowarn="$nowarn --no-warn-rwx-segments"
> fi
On the way to bed, it occurred to me that the above "if" line can be
written as:
if "${CROSS}ld" -v --no-warn-rwx-segments >/dev/null 2>&1; then
--
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20250422/089542c7/attachment.sig>
More information about the Linuxppc-dev
mailing list