All of lore.kernel.org
 help / color / mirror / Atom feed
From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: Venkat Rao Bagalkote <venkat88@linux.ibm.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [main-line]Build warnings on PowerPC system
Date: Thu, 27 Mar 2025 20:36:55 +0530	[thread overview]
Message-ID: <38653c58-a5c4-496f-9b52-e7bc3e447423@linux.ibm.com> (raw)
In-Reply-To: <b5713b0b-a278-424c-8ba3-3aec01454e94@linux.ibm.com>



On 3/27/25 7:31 PM, Venkat Rao Bagalkote wrote:
> 
> On 27/03/25 7:22 pm, Madhavan Srinivasan wrote:
>>
>> On 3/27/25 12:33 AM, Venkat Rao Bagalkote wrote:
>>> Greetings!!!
>>>
>>> I see below build warnings while compiling mainline kernel on IBM Power9 system.
>>>
>>> Repo Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
>>>
>>> Head Commit: f6e0150b2003fb2b9265028a618aa1732b3edc8f
>>>
>>> Attached is the .config.
>>>
>>> Machine: IBM Power9
>>>
>>> gcc version 11.5.0
>> What is the ld version in your system.
> 
> Please find the ld version below.
> 
> GNU ld version 2.35.2-59.el9


ah ok that explains. Kindly can you try with this patch and let us know whether 
this fixes the warning in your setup


diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 1db60fe13802..09ceb5a42d81 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -235,7 +235,7 @@ fi
 # suppress some warnings in recent ld versions
 nowarn="-z noexecstack"
 if ! ld_is_lld; then
-       if [ "$LD_VERSION" -ge "$(echo 2.39 | ld_version)" ]; then
+       if [ "$LD_VERSION" -ge "$(echo 2.35 | ld_version)" ]; then
                nowarn="$nowarn --no-warn-rwx-segments"
        fi
 fi


> 
> 
> Regards,
> 
> Venkat.
> 
>>
>> Reason for asking is that currently with
>>
>> commit  579aee9fc594a ("powerpc: suppress some linker warnings in recent linker versions")
>>
>> ld version greater than >2.39, this warning is being suppressed.
>>
>> Maddy
>>
>>>
>>> Warnings:
>>>
>>> ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD segment with RWX permissions
>>> ld: warning: arch/powerpc/boot/zImage.pseries has a LOAD segment with RWX permissions
>>>
>>>
>>> If you happen to fix this, please add below tag.
>>>
>>>
>>> Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
>>>
>>>
>>> Regards,
>>>
>>> Venkat.



  reply	other threads:[~2025-03-27 15:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-26 19:03 [main-line]Build warnings on PowerPC system Venkat Rao Bagalkote
2025-03-27 13:52 ` Madhavan Srinivasan
2025-03-27 14:01   ` Venkat Rao Bagalkote
2025-03-27 15:06     ` Madhavan Srinivasan [this message]
2025-03-27 16:24       ` Venkat Rao Bagalkote
2025-03-27 18:55         ` Christophe Leroy
2025-03-28 11:14           ` Madhavan Srinivasan
2025-03-28 11:48             ` Christophe Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38653c58-a5c4-496f-9b52-e7bc3e447423@linux.ibm.com \
    --to=maddy@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=venkat88@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.