diff options
author | Nick Clifton <nickc@redhat.com> | 2016-01-13 09:41:04 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-01-13 09:41:04 +0000 |
commit | 12cbc9c9a068050019f2b39077dfc380178387ca (patch) | |
tree | 52ca845e4fc5ed859fd888b517f3b8eabdf78cd7 | |
parent | c30e0110c3dcaad748b6db6a9a0e832e034043f1 (diff) | |
download | binutils-gdb-12cbc9c9a068050019f2b39077dfc380178387ca.tar.gz |
Mark the linker's extract symbols test as an expected failure for MIPS targets.
* ld-scripts/script.exp (extract_symbol_test): Expect to
fail for MIPS targets.
-rw-r--r-- | ld/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/script.exp | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 61da9a5dd0f..bc21e0987b0 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -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. diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp index e735bdacf34..367f35588a3 100644 --- a/ld/testsuite/ld-scripts/script.exp +++ b/ld/testsuite/ld-scripts/script.exp @@ -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 |