aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/x86-64.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 48d8ad2c67..21f408d27d 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -815,7 +815,9 @@ if { [isnative] && [which $CC] != 0 } {
] \
[list \
"Build gotpcrel1" \
- "-Wl,--as-needed tmpdir/gotpcrel1a.o tmpdir/gotpcrel1b.o tmpdir/gotpcrel1c.o tmpdir/gotpcrel1d.so" \
+ "$NOPIE_LDFLAGS -Wl,--as-needed tmpdir/gotpcrel1a.o \
+ tmpdir/gotpcrel1b.o tmpdir/gotpcrel1c.o \
+ tmpdir/gotpcrel1d.so" \
{ dummy.s } \
"" \
{{objdump {-dw} gotpcrel1.dd}} \
@@ -1061,11 +1063,12 @@ if { [isnative] && [which $CC] != 0 } {
] \
[list \
"Run pr19031" \
- "-Wl,--no-as-needed tmpdir/pr19031.so" \
+ "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr19031.so" \
"" \
{ pr19031b.S pr19031c.c } \
"pr19031" \
"pr19031.out" \
+ "$NOPIE_CFLAGS" \
] \
[list \
"Run gotpcrel1" \