From: Clément Chigot Date: Wed, 24 Nov 2021 14:56:51 +0000 (+0100) Subject: ld/testsuite/ld-elfvsb: correctly test "weak hidden symbol DSO last" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eec685f8a6e1a654bb82b0f20134689861589866;p=binutils-gdb.git 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" --- diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp index 1866be5e66d..735a3d8bff1 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"