* [PATCH] i386: Pass -z noexecstack to linker tests
@ 2022-04-26 16:28 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2022-04-26 16:28 UTC (permalink / raw)
To: binutils
PR ld/29072
* testsuite/ld-i386/i386.exp: Pass -z noexecstack to gotpc1
and property-6.
---
ld/testsuite/ld-i386/i386.exp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index 471a1f79547..b4f7de49fd5 100644
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -813,7 +813,8 @@ if { [isnative]
] \
[list \
"Build gotpc1" \
- "$NOPIE_LDFLAGS -Wl,--as-needed tmpdir/gotpc1.o tmpdir/got1d.so" \
+ "$NOPIE_LDFLAGS -Wl,--as-needed,-z,noexecstack \
+ tmpdir/gotpc1.o tmpdir/got1d.so" \
"-Wa,-mx86-used-note=no" \
{ dummy.s } \
{{objdump {-dw} got1.dd}} \
@@ -990,7 +991,8 @@ if { [isnative]
] \
[list \
"Build property-6" \
- "-Wl,--as-needed tmpdir/property-6.o tmpdir/property-6.so" \
+ "-Wl,--as-needed,-z,noexecstack \
+ tmpdir/property-6.o tmpdir/property-6.so" \
"-Wa,-mx86-used-note=no" \
{ dummy.s } \
{{readelf {-n} property-2.r}} \
--
2.35.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-26 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 16:28 [PATCH] i386: Pass -z noexecstack to linker tests H.J. Lu
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).