Correct bfin XPASSes
bfin-elf and bfin-linux differ. This patch fixes these: bfin-linux-uclibc -XPASS: PR ld/14170 bfin-linux-uclibc -XPASS: pr17068 link --as-needed lib in group bfin-linux-uclibc -XPASS: -Bsymbolic-functions bfin-linux-uclibc -XPASS: pr22374 function pointer initialization * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for bfin-*-linux*. (pr17068, symbolic-func.so, pr22374): Likewise.
This commit is contained in:
parent
d081ffffa0
commit
c7c970e4c6
|
@ -1,3 +1,9 @@
|
||||||
|
2020-06-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
|
||||||
|
bfin-*-linux*.
|
||||||
|
(pr17068, symbolic-func.so, pr22374): Likewise.
|
||||||
|
|
||||||
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
||||||
|
|
||||||
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
|
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
|
||||||
|
|
|
@ -379,12 +379,14 @@ run_ld_link_tests [list \
|
||||||
]
|
]
|
||||||
|
|
||||||
# bfin does not currently support copy relocs.
|
# bfin does not currently support copy relocs.
|
||||||
|
setup_xfail bfin-*-*
|
||||||
|
clear_xfail bfin-*-linux*
|
||||||
run_ld_link_tests [list \
|
run_ld_link_tests [list \
|
||||||
[list "PR ld/14170" \
|
[list "PR ld/14170" \
|
||||||
"$LFLAGS --no-dynamic-linker tmpdir/pr14170a.o tmpdir/pr14170.so" "" \
|
"$LFLAGS --no-dynamic-linker tmpdir/pr14170a.o tmpdir/pr14170.so" "" \
|
||||||
$hpux \
|
$hpux \
|
||||||
{pr14170c.s} { } "pr14170" ] \
|
{pr14170c.s} { } "pr14170" ] \
|
||||||
] "bfin-*-*"
|
]
|
||||||
|
|
||||||
# Targets that use _bfd_generic_link_add_symbols won't pass pr21703 tests
|
# Targets that use _bfd_generic_link_add_symbols won't pass pr21703 tests
|
||||||
# Nor will hppa64 with dot-symbols.
|
# Nor will hppa64 with dot-symbols.
|
||||||
|
@ -431,22 +433,26 @@ run_ld_link_tests [list \
|
||||||
]
|
]
|
||||||
|
|
||||||
# bfin does not currently support copy relocs.
|
# bfin does not currently support copy relocs.
|
||||||
|
setup_xfail bfin-*-*
|
||||||
|
clear_xfail bfin-*-linux*
|
||||||
run_ld_link_tests {
|
run_ld_link_tests {
|
||||||
{"pr17068 link --as-needed lib in group"
|
{"pr17068 link --as-needed lib in group"
|
||||||
"$LFLAGS --as-needed --no-dynamic-linker"
|
"$LFLAGS --as-needed --no-dynamic-linker"
|
||||||
"--start-group tmpdir/pr17068a.a tmpdir/pr17068.so tmpdir/pr17068b.a\
|
"--start-group tmpdir/pr17068a.a tmpdir/pr17068.so tmpdir/pr17068b.a\
|
||||||
--end-group" ""
|
--end-group" ""
|
||||||
{start.s pr17068.s} {} "pr17068"}
|
{start.s pr17068.s} {} "pr17068"}
|
||||||
} "bfin-*-*"
|
}
|
||||||
|
|
||||||
# Fails on MIPS because ABI trickery means that a NULL reloc is emitted.
|
# Fails on MIPS because ABI trickery means that a NULL reloc is emitted.
|
||||||
# Fails on bfin because relocations are not created.
|
# Fails on bfin because relocations are not created.
|
||||||
|
setup_xfail mips*-*-* bfin-*-*
|
||||||
|
clear_xfail bfin-*-linux*
|
||||||
run_ld_link_tests [list \
|
run_ld_link_tests [list \
|
||||||
[list "-Bsymbolic-functions" \
|
[list "-Bsymbolic-functions" \
|
||||||
"-shared -Bsymbolic-functions" "" "$AFLAGS_PIC" \
|
"-shared -Bsymbolic-functions" "" "$AFLAGS_PIC" \
|
||||||
{symbolic-func.s} {{readelf {-r --wide} symbolic-func.r}} \
|
{symbolic-func.s} {{readelf {-r --wide} symbolic-func.r}} \
|
||||||
"symbolic-func.so"] \
|
"symbolic-func.so"] \
|
||||||
] "mips*-*-*" "bfin-*-*"
|
]
|
||||||
|
|
||||||
run_ld_link_tests [list \
|
run_ld_link_tests [list \
|
||||||
[list "Build pr20995.so" \
|
[list "Build pr20995.so" \
|
||||||
|
@ -485,20 +491,12 @@ run_ld_link_tests [list \
|
||||||
[list "Build pr22374 shared library" \
|
[list "Build pr22374 shared library" \
|
||||||
"-shared" "" "$AFLAGS_PIC" "pr22374b.s" {} "pr22374.so" ] \
|
"-shared" "" "$AFLAGS_PIC" "pr22374b.s" {} "pr22374.so" ] \
|
||||||
]
|
]
|
||||||
if { ![istarget "alpha-*-*"]
|
|
||||||
&& ![istarget "csky-*-*"]
|
# The next test checks that copy relocs are not used unnecessarily,
|
||||||
&& ![istarget "frv-*-*"]
|
# but that is just an optimization so don't complain loudly.
|
||||||
&& ![istarget "hppa*-*-*"]
|
setup_xfail *-*-*
|
||||||
&& ![istarget "i?86-*-*"]
|
clear_xfail alpha-*-* bfin-*-linux* csky-*-* frv-*-* hppa*-*-* i?86-*-*
|
||||||
&& ![istarget "ia64-*-*"]
|
clear_xfail ia64-*-* microblaze-*-* powerpc*-*-* x86_64-*-* xtensa-*-*
|
||||||
&& ![istarget "microblaze-*-*"]
|
|
||||||
&& ![istarget "powerpc*-*-*"]
|
|
||||||
&& ![istarget "x86_64-*-*"]
|
|
||||||
&& ![istarget "xtensa-*-*"] } {
|
|
||||||
# The next test checks that copy relocs are not used unnecessarily,
|
|
||||||
# but that is just an optimization so don't complain loudly.
|
|
||||||
setup_xfail "*-*-*"
|
|
||||||
}
|
|
||||||
run_ld_link_tests {
|
run_ld_link_tests {
|
||||||
{"pr22374 function pointer initialization"
|
{"pr22374 function pointer initialization"
|
||||||
"" "tmpdir/pr22374.so" "" "pr22374a.s"
|
"" "tmpdir/pr22374.so" "" "pr22374a.s"
|
||||||
|
|
Loading…
Reference in New Issue