From eec685f8a6e1a654bb82b0f20134689861589866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Wed, 24 Nov 2021 15:56:51 +0100 Subject: 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" --- ld/testsuite/ld-elfvsb/elfvsb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/testsuite/ld-elfvsb') 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" -- cgit v1.1