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"
This commit is contained in:
Clément Chigot
2021-11-24 15:56:51 +01:00
parent 6ff9675421
commit eec685f8a6

View 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"