]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/testsuite/ld-elfvsb: correctly test "weak hidden symbol DSO last"
authorClément Chigot <clement.chigot@atos.net>
Wed, 24 Nov 2021 14:56:51 +0000 (15:56 +0100)
committerClément Chigot <clement.chigot@atos.net>
Thu, 25 Nov 2021 07:59:21 +0000 (08:59 +0100)
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"

ld/testsuite/ld-elfvsb/elfvsb.exp

index 1866be5e66d65a537b068411d3fb43a6aa56a719..735a3d8bff181e04d7c6afc4b302ced554b68b74 100644 (file)
@@ -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"