aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-02-06 12:59:06 +1030
committerAlan Modra <amodra@gmail.com>2024-02-06 17:32:31 +1030
commit60c95acdaca94eca79b81ec75bfab97826cc0271 (patch)
tree5964a1eebefd10f0c1d7ce7c24e1e0ee28821325 /ld/testsuite
parentdf8db2b1fb252f9045dfa52ce91bb3f22958b113 (diff)
downloadgdb-60c95acdaca94eca79b81ec75bfab97826cc0271.zip
gdb-60c95acdaca94eca79b81ec75bfab97826cc0271.tar.gz
gdb-60c95acdaca94eca79b81ec75bfab97826cc0271.tar.bz2
Link x86-64 mark-plt-1.so with --no-as-needed
Fixes FAIL: Build mark-plt-1.so where gcc is built with default --as-needed. * testsuite/ld-x86-64/x86-64.exp (Build mark-plt-1.so): Pass --no-as-needed.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index a1a0422..e370f39 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -2263,7 +2263,7 @@ if { [check_compiler_available] } {
run_cc_link_tests [list \
[list \
"Build mark-plt-1.so" \
- "-shared -Wl,-z,mark-plt,-z,pack-relative-relocs" \
+ "-shared -Wl,--no-as-needed,-z,mark-plt,-z,pack-relative-relocs" \
"-fPIC" \
{ mark-plt-1.s } \
{{readelf {-W --version-info} mark-plt-1a.rd} \