mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +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"] {
|
if ![ld_link $ld tmpdir/sh3.so "-shared tmpdir/sh3.o"] {
|
||||||
fail "weak hidden symbol"
|
fail "weak hidden symbol"
|
||||||
} else {
|
} 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"
|
fail "weak hidden symbol DSO last"
|
||||||
} else {
|
} else {
|
||||||
pass "weak hidden symbol DSO last"
|
pass "weak hidden symbol DSO last"
|
||||||
|
Reference in New Issue
Block a user