PR binutils/3807
authorHans-Peter Nilsson <hp@axis.com>
Tue, 13 Mar 2012 00:41:22 +0000 (00:41 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 13 Mar 2012 00:41:22 +0000 (00:41 +0000)
* binutils-all/objcopy.exp (localize-hidden-1): Correct xfailed
mips-targets.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/objcopy.exp

index ecea0e7..bc33a5b 100644 (file)
@@ -1,3 +1,9 @@
+2012-03-13  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR binutils/3807
+       * binutils-all/objcopy.exp (localize-hidden-1): Correct xfailed
+       mips-targets.
+
 2012-02-25  Walter Lee  <walt@tilera.com>
 
        * binutils-all/objdump.exp (cpus_expected): Add tilegx.
index 94362b7..4dfb73c 100644 (file)
@@ -980,9 +980,19 @@ if [is_elf_format] {
        }
     }
 
-    # The symbol table for MIPS targets is not sorted by ascending value,
-    # so the regexps in localize-hidden-1.d fail to match.
-    setup_xfail "mips-*-*"
+    # The symbol table for some MIPS targets is sorted differently than
+    # the ELF canonical order, so the regexps in localize-hidden-1.d fail
+    # to match.  These tests must be matched to targets for which
+    # targ_defvec=bfd_elf32_bigmips_vec,
+    # targ_defvec=bfd_elf32_littlemips_vec,
+    # targ_defvec=bfd_elf32_nbigmips_vec or
+    # targ_defvec=bfd_elf32_nlittlemips_vec in config.bfd.  When syncing,
+    # don't forget that earlier case-matches trump later ones.
+    if { ![istarget "mips*-sde-elf*"] && ![istarget "mips64*-*-openbsd*"] } {
+       setup_xfail "mips*-*-irix5*" "mips*-*-irix6*" "mips*-*-elf*" \
+           "mips*-*-rtems*" "mips*-*-windiss" "mips*-*-none" \
+           "mips*-*-openbsd*" "mips*-*-chorus*"
+    }
     run_dump_test "localize-hidden-1"
     run_dump_test "testranges"
     run_dump_test "testranges-ia64"