aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/shared.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r--ld/testsuite/ld-elf/shared.exp23
1 files changed, 7 insertions, 16 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 48fdc54..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" \
@@ -1694,7 +1692,7 @@ proc mix_pic_and_non_pic {xfails cflags ldflags exe} {
}
}
-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" \
] \