public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Guillermo E. Martinez" <guillermo.e.martinez@oracle.com>
To: binutils@sourceware.org
Cc: jose.marchesi@oracle.com,
	"Guillermo E. Martinez" <guillermo.e.martinez@oracle.com>
Subject: [PATCH] Fix sim/testsuite/bpf due to linker warnings
Date: Tue,  3 Jan 2023 22:12:19 -0600	[thread overview]
Message-ID: <20230104041219.794237-1-guillermo.e.martinez@oracle.com> (raw)

Hello,

This patch is meant to fix bug:
  https://sourceware.org/bugzilla/show_bug.cgi?id=29954 

Please let know your thoughts. I'll really appreciate them!,
guillermo

--

On a bpf-*-* testsuite fails:
	./ld/ld-new: warning: test has a LOAD segment with RWX permissions

Adding `--no-warn-rwx-segments' option to linker and set `--memory-size=10Mb'
to the simulator bpf testsuite passes.

Tested on bpf-*-*:

Bug 29954: https://sourceware.org/bugzilla/show_bug.cgi?id=29954

sim/testsuite:
	* bpf/allinsn.exp (SIMFLAGS_FOR_TARGET): Adjust sim flags.
	(LDFLAGS_FOR_TARGET): Adjust ld flags.
---
 sim/testsuite/bpf/allinsn.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sim/testsuite/bpf/allinsn.exp b/sim/testsuite/bpf/allinsn.exp
index 98f0346776a..758ecc1b414 100644
--- a/sim/testsuite/bpf/allinsn.exp
+++ b/sim/testsuite/bpf/allinsn.exp
@@ -6,10 +6,10 @@ sim_init
 set all_machs "bpf"
 
 global SIMFLAGS_FOR_TARGET
-set SIMFLAGS_FOR_TARGET "--memory-size=4Mb"
+set SIMFLAGS_FOR_TARGET "--memory-size=10Mb"
 
 global LDFLAGS_FOR_TARGET
-set LDFLAGS_FOR_TARGET "-Ttext=0x0"
+set LDFLAGS_FOR_TARGET "--no-warn-rwx-segments"
 
 foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.s]] {
     # If we're only testing specific files and this isn't one of them, skip it.
-- 
2.39.0


             reply	other threads:[~2023-01-04  4:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04  4:12 Guillermo E. Martinez [this message]
2023-01-04  7:02 ` Mike Frysinger
2023-01-04 17:24   ` Guillermo E. Martinez
2023-01-04 21:41 ` [PATCHv2] " Guillermo E. Martinez
2023-01-05  1:54   ` Mike Frysinger

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=20230104041219.794237-1-guillermo.e.martinez@oracle.com \
    --to=guillermo.e.martinez@oracle.com \
    --cc=binutils@sourceware.org \
    --cc=jose.marchesi@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).