diff options
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index bf8952a..ee881c2 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -516,7 +516,6 @@ run_ld_link_tests { if { [istarget *-*-linux*] || [istarget kvx-*-*] - || [istarget *-*-nacl*] || [istarget *-*-gnu*] } { run_ld_link_tests { {"Weak symbols in dynamic objects 1 (support)" @@ -1374,7 +1373,6 @@ run_cc_link_tests $build_cxx_tests run_ld_link_exec_tests $run_cxx_tests if { [istarget *-*-linux*] - || [istarget *-*-nacl*] || [istarget *-*-gnu*] } { run_cc_link_tests [list \ [list \ @@ -1618,12 +1616,12 @@ if { [istarget *-*-linux*] ] \ [list \ "Run pr21964-4" \ - "" \ + "$NOPIE_LDFLAGS" \ "" \ {pr21964-4.c} \ "pr21964-4" \ "pass.out" \ - "" \ + "$NOPIE_CFLAGS" \ "" \ "" \ "-ldl" \ @@ -1664,7 +1662,7 @@ proc mix_pic_and_non_pic {xfails cflags ldflags exe} { run_ld_link_exec_tests [list \ [list \ - "Run $exe fun defined" \ + "Run $exe fun undefined" \ "-Wl,--no-as-needed,-rpath,tmpdir $ldflags tmpdir/libpr19719b.o tmpdir/libpr19719.so" \ "" \ { pr19719a.c pr19719c.c } \ @@ -1682,19 +1680,19 @@ proc mix_pic_and_non_pic {xfails cflags ldflags exe} { } if ![isnative] { - unsupported "Run $exe fun undefined" + unsupported "Run $exe fun defined" return } set exec_output [run_host_cmd "tmpdir/$exe" ""] if {![string match "PASS\n" $exec_output]} { - fail "Run $exe fun undefined" + fail "Run $exe fun defined" } else { - pass "Run $exe fun undefined" + pass "Run $exe fun defined" } } -mix_pic_and_non_pic [list "arm*-*-*"] "" "" "pr19719" +mix_pic_and_non_pic [list "arm*-*-*"] "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS" "pr19719" mix_pic_and_non_pic [] "-fPIE" "-pie" "pr19719pie" set AFLAGS_PIE "" @@ -1707,7 +1705,6 @@ if [istarget "sparc*-*-*"] { } if { ([istarget "*-*-linux*"] - || [istarget "*-*-nacl*"] || [istarget "*-*-gnu*"]) && ![istarget "mips*-*-*"] } { run_ld_link_tests [list \ @@ -1767,7 +1764,7 @@ if { ([istarget "*-*-linux*"] "" \ $AFLAGS_PIE \ { pr23161b.c } \ - {{readelf {--dyn-syms -rW} pr23161b.rd}} \ + {{readelf {--dyn-syms -W} pr23161b.rd}} \ "pr23161a" \ "-fPIC -O0 $NOSANITIZE_CFLAGS" \ ] \ @@ -1787,23 +1784,17 @@ if { ([istarget "*-*-linux*"] "" \ $AFLAGS_PIE \ { pr23161b.c } \ - {{readelf {--dyn-syms -rW} pr23161b.rd}} \ + {{readelf {--dyn-syms -W} pr23161b.rd}} \ "pr23161b" \ "-fPIC -O0 $NOSANITIZE_CFLAGS" \ ] \ - ] -} - -if { [istarget "i?86-*-*"] - || [istarget "x86_64-*-*"] } { - run_ld_link_tests [list \ [list \ "Build libpr23161c.so" \ "-shared" \ "" \ "$AFLAGS_PIC" \ { pr23161c.c } \ - {{readelf {--dyn-syms -rW} pr23161c.rd}} \ + {{readelf {--dyn-syms -W} pr23161c.rd}} \ "libpr23161c.so" \ "-fPIC -O2 $NOSANITIZE_CFLAGS" \ ] \ @@ -1813,7 +1804,7 @@ if { [istarget "i?86-*-*"] "" \ $AFLAGS_PIE \ { pr23161b.c } \ - {{readelf {--dyn-syms -rW} pr23161d.rd}} \ + {{readelf {--dyn-syms -W} pr23161c.rd}} \ "pr23161c" \ "-fPIC -O0 $NOSANITIZE_CFLAGS" \ ] \ |