summaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2021-11-24 15:56:51 +0100
committerClément Chigot <clement.chigot@atos.net>2021-11-25 08:59:21 +0100
commiteec685f8a6e1a654bb82b0f20134689861589866 (patch)
treedc1bba9864a9a1107ed4240122a4f7497f67d23c /ld/testsuite
parent6ff9675421809af862db5b86d3756ddf4aef568f (diff)
ld/testsuite/ld-elfvsb: correctly test "weak hidden symbol DSO last"
The test must be done with the shared object and not with the object file which is already being tested above. ld/ * testsuite/ld-elfvsb/elfvsb.exp: use .so file in "weak hidden symbol DSO last"
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elfvsb/elfvsb.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp
index 1866be5e66..735a3d8bff 100644
--- a/ld/testsuite/ld-elfvsb/elfvsb.exp
+++ b/ld/testsuite/ld-elfvsb/elfvsb.exp
@@ -464,7 +464,7 @@ if { ![ld_compile "$CC_FOR_TARGET -g $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" $srcdir/$
if ![ld_link $ld tmpdir/sh3.so "-shared tmpdir/sh3.o"] {
fail "weak hidden symbol"
} else {
- if ![ld_link $ld tmpdir/weak "tmpdir/test.o tmpdir/sh3.o"] {
+ if ![ld_link $ld tmpdir/weak "tmpdir/test.o tmpdir/sh3.so"] {
fail "weak hidden symbol DSO last"
} else {
pass "weak hidden symbol DSO last"