aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-04-26 09:26:36 -0700
committerH.J. Lu <hjl.tools@gmail.com>2022-04-26 09:28:24 -0700
commitf93c6e0a2ed1ad4f0a9bb8f38e859f3312c25282 (patch)
tree999f7be047d0c437b0611b88108ad95996b96e70
parentc62dced2d48a8a3a818c87d0d9d41709fe7997d9 (diff)
downloadfsf-binutils-gdb-f93c6e0a2ed1ad4f0a9bb8f38e859f3312c25282.zip
fsf-binutils-gdb-f93c6e0a2ed1ad4f0a9bb8f38e859f3312c25282.tar.gz
fsf-binutils-gdb-f93c6e0a2ed1ad4f0a9bb8f38e859f3312c25282.tar.bz2
i386: Pass -z noexecstack to linker tests
PR ld/29072 * testsuite/ld-i386/i386.exp: Pass -z noexecstack to gotpc1 and property-6.
-rw-r--r--ld/testsuite/ld-i386/i386.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index 471a1f7..b4f7de4 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}} \