diff options
author | Nick Clifton <nickc@redhat.com> | 2021-06-09 11:10:16 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-06-09 11:10:16 +0100 |
commit | f75bcf7e574c511f0ea742e05e5ae6e19bf29a92 (patch) | |
tree | c3dc002146e7ec289e13edbdeffa09dc2c005e6f /ld/testsuite/ld-sparc | |
parent | 1bc5b62129b45aeb860af1002bfef199a1850755 (diff) | |
download | gdb-f75bcf7e574c511f0ea742e05e5ae6e19bf29a92.zip gdb-f75bcf7e574c511f0ea742e05e5ae6e19bf29a92.tar.gz gdb-f75bcf7e574c511f0ea742e05e5ae6e19bf29a92.tar.bz2 |
Fix the creation of archives for Sparc Solaris2 targets by eliminating the support for generic SPARC ELF files.
PR 27666
bfd * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
vectors to Sparc Solaris2 targets.
ld * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
sparc64tests for Solaris2 targets.
Diffstat (limited to 'ld/testsuite/ld-sparc')
-rw-r--r-- | ld/testsuite/ld-sparc/sparc.exp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/ld/testsuite/ld-sparc/sparc.exp b/ld/testsuite/ld-sparc/sparc.exp index 5621d07..3b65779 100644 --- a/ld/testsuite/ld-sparc/sparc.exp +++ b/ld/testsuite/ld-sparc/sparc.exp @@ -142,14 +142,19 @@ set sparc64tests { "libgotop64.so"} } -if { ![istarget "sparc64-*-elf*"] } { - run_ld_link_tests $sparctests -} +# The solaris2 targets do not support the generic SPARC ELF targets, +# ie -melf32_sparc and -melf64_sparc, so we skip the next set of +# tests for them. Support could be added, but this then breaks the +# creation of archives for those targets. See PR 27666 for more +# details. +if { ![istarget "*-*-solaris2*"] } { + if { ![istarget "sparc64-*-elf*"] } { + run_ld_link_tests $sparctests + } -if { !([istarget "sparc-*-elf*"] - || [istarget "sparc-sun-solaris2.5*"] - || [istarget "sparc-sun-solaris2.6"]) } { - run_ld_link_tests $sparc64tests + if { ![istarget "sparc-*-elf*"] } { + run_ld_link_tests $sparc64tests + } } if { [istarget "sparc*-*-linux*"] && [isnative] } { |