aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb
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/ld-elfvsb
parent6ff9675421809af862db5b86d3756ddf4aef568f (diff)
downloadgdb-eec685f8a6e1a654bb82b0f20134689861589866.zip
gdb-eec685f8a6e1a654bb82b0f20134689861589866.tar.gz
gdb-eec685f8a6e1a654bb82b0f20134689861589866.tar.bz2
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/ld-elfvsb')
-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 1866be5..735a3d8 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"