diff options
Diffstat (limited to 'binutils/testsuite/lib/binutils-common.exp')
-rw-r--r-- | binutils/testsuite/lib/binutils-common.exp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 33a0382..bfe2998 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -202,6 +202,36 @@ proc supports_gnu_unique {} { return 1 } +# True for targets that do not sort .symtab as per the ELF standard. +# ie. any that have mips_elf32_be_vec, mips_elf32_le_vec, +# mips_elf32_n_be_vec or mips_elf32_n_le_vec as the primary bfd target +# vector in config.bfd. When syncing with config.bfd, don't forget that +# earlier case-matches trump later ones. +proc is_bad_symtab {} { + if { ![istarget "mips*-*-*"] } { + return 0; + } + if { [istarget "*-*-chorus*"] + || [istarget "*-*-irix5*"] + || [istarget "*-*-irix6*"] + || [istarget "*-*-none"] + || [istarget "*-*-rtems*"] + || [istarget "*-*-windiss"] } { + return 1; + } + if { [istarget "*-*-elf*"] + && ![istarget "*-sde-*"] + && ![istarget "*-mti-*"] + && ![istarget "*-img-*"] } { + return 1; + } + if { [istarget "*-*-openbsd*"] + && ![istarget "mips64*-*-*"] } { + return 1; + } + return 0; +} + # Compare two files line-by-line. FILE_1 is the actual output and FILE_2 # is the expected output. Ignore blank lines in either file. # |