aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-elf/dt-relr.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/dt-relr.exp b/ld/testsuite/ld-elf/dt-relr.exp
index 280373e..4237360 100644
--- a/ld/testsuite/ld-elf/dt-relr.exp
+++ b/ld/testsuite/ld-elf/dt-relr.exp
@@ -26,7 +26,7 @@ if { ![supports_dt_relr] } {
run_cc_link_tests [list \
[list \
"Build dt-relr-glibc-1a.so" \
- "-shared $NO_DT_RELR_CC_LDFLAGS" \
+ "-shared -Wl,--no-as-needed $NO_DT_RELR_CC_LDFLAGS" \
"-fPIC" \
{ dt-relr-glibc-1.c } \
{{readelf {--version-info} dt-relr-glibc-1a.rd}} \
@@ -34,7 +34,7 @@ run_cc_link_tests [list \
] \
[list \
"Build dt-relr-glibc-1b.so" \
- "-shared $DT_RELR_CC_LDFLAGS" \
+ "-shared -Wl,--no-as-needed $DT_RELR_CC_LDFLAGS" \
"-fPIC" \
{ dt-relr-glibc-1.c } \
{{readelf {-W --version-info} dt-relr-glibc-1b.rd}} \