mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
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:
@ -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"
|
||||
|
Reference in New Issue
Block a user