diff options
Diffstat (limited to 'ld/testsuite/ld-elf/dwarf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/dwarf.exp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ld/testsuite/ld-elf/dwarf.exp b/ld/testsuite/ld-elf/dwarf.exp index 86b4896..572c704 100644 --- a/ld/testsuite/ld-elf/dwarf.exp +++ b/ld/testsuite/ld-elf/dwarf.exp @@ -29,11 +29,6 @@ if ![is_elf_format] { return } -# The following tests require running the executable generated by ld. -if ![isnative] { - return -} - # Check if compiler works if { [which $CC] == 0 } { return @@ -52,7 +47,7 @@ set build_tests { set run_tests { {"Run with libdwarf1.so first" - "tmpdir/libdwarf1.so" "" + "-Wl,--no-as-needed tmpdir/libdwarf1.so" "" {dwarf1main.c} "dwarf1a" "dwarf1.out" "-g -feliminate-dwarf2-dups"} {"Run with libdwarf1.so last" @@ -73,7 +68,7 @@ proc strip_test {} { set test_name "Strip -s $test" set prog $strip - if ![ld_simple_link $ld tmpdir/$test "-shared tmpdir/dwarf1.o"] { + if ![ld_link $ld tmpdir/$test "-shared tmpdir/dwarf1.o"] { unresolved "$test_name" return } |