aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/no-plt.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/no-plt.exp')
-rw-r--r--ld/testsuite/ld-x86-64/no-plt.exp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ld/testsuite/ld-x86-64/no-plt.exp b/ld/testsuite/ld-x86-64/no-plt.exp
index 9cecd03538..84ca5b7ed2 100644
--- a/ld/testsuite/ld-x86-64/no-plt.exp
+++ b/ld/testsuite/ld-x86-64/no-plt.exp
@@ -39,6 +39,9 @@ if { [which $CC] == 0 } {
return
}
+# Add $NOPIE_CFLAGS and $NOPIE_LDFLAGS if non-PIE is required.
+global NOPIE_CFLAGS NOPIE_LDFLAGS
+
run_cc_link_tests [list \
[list \
"Build no-plt-func1.o no-plt-main1.o" \
@@ -71,7 +74,7 @@ run_cc_link_tests [list \
] \
[list \
"No PLT (dynamic 1a)" \
- "tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
+ "$NOPIE_LDFLAGS tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
"" \
{dummy.s} \
@@ -89,7 +92,7 @@ run_cc_link_tests [list \
] \
[list \
"No PLT (dynamic 1c)" \
- "tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
+ "$NOPIE_LDFLAGS tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
"" \
{dummy.s} \
@@ -266,7 +269,7 @@ if { [check_ifunc_available] } {
] \
[list \
"Run pr20253-2f" \
- "tmpdir/pr20253-2a.o" \
+ "$NOPIE_LDFLAGS tmpdir/pr20253-2a.o" \
"" \
{ pr20253-2b.S pr20253-2c.S pr20253-2d.S } \
"pr20253-2f" \