]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Mark the linker's extract symbols test as an expected failure for MIPS targets.
authorNick Clifton <nickc@redhat.com>
Wed, 13 Jan 2016 09:41:04 +0000 (09:41 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 13 Jan 2016 09:41:04 +0000 (09:41 +0000)
* ld-scripts/script.exp (extract_symbol_test): Expect to
fail for MIPS targets.

ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/script.exp

index 61da9a5dd0f3a5459fa8cfbabb725ca9b0a83182..bc21e0987b0f15f945bd3c76335d5c75d5bc8058 100644 (file)
@@ -1,5 +1,8 @@
 2016-01-13  Nick Clifton  <nickc@redhat.com>
 
+       * ld-scripts/script.exp (extract_symbol_test): Expect to
+       fail for MIPS targets.
+
        * ld-scripts/rgn-at11.d: Expect this test to fail for
        MIPS targets.
 
index e735bdacf34d2bb00dd1bd059728b6cf6e07cd39..367f35588a35966afe30fb95dad39c47c3d83896 100644 (file)
@@ -134,6 +134,17 @@ proc extract_symbol_test { testfile testname } {
            # but absolute symbol types are expected.
            regsub -all " \[TD\] " $syms_massaged " A " syms_massaged
        }
+       ^mips-*-* {
+           # This test cannot proceed any further for MIPS targets.
+           # The extract_syms operation produces a binary with a zero
+           # length .reginfo section, which is illegal under the MIPS
+           # ABI.  Since producing such sections is part of the expected
+           # behaviour of --extract-symbols, no further testing can be
+           # performed.  Fortunately this should not matter as extracting
+           # symbols is only needed for VxWorks support.
+           pass $testname
+           return
+       }
     }
 
     set extract_syms [run_host_cmd $nm $copyfile]
@@ -142,6 +153,7 @@ proc extract_symbol_test { testfile testname } {
        return
     }
 
+    # Check that the stripped section contains no code or data.
     set exec_output [run_host_cmd $size $copyfile]
     if ![regexp ".* 0\[         \]+0\[  \]+0\[  \]+0\[  \]+0\[  \]+.*" $exec_output] {
        fail $testname