aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-01-13 09:40:11 +0000
committerNick Clifton <nickc@redhat.com>2016-01-13 09:40:11 +0000
commit13ce3603be6e1732d1580237ba4ed9b0f0f18a1a (patch)
tree4c7b79b3a5b34267128bf4b551fa94adb32ed1c9 /ld/testsuite/ld-scripts
parent1bce3adf994fae49c51c8ddadd4a2371ab6fcc06 (diff)
downloadgdb-13ce3603be6e1732d1580237ba4ed9b0f0f18a1a.zip
gdb-13ce3603be6e1732d1580237ba4ed9b0f0f18a1a.tar.gz
gdb-13ce3603be6e1732d1580237ba4ed9b0f0f18a1a.tar.bz2
Mark the linker's extract symbols test as an expected failure for MIPS targets.
* testsuite/ld-scripts/script.exp (extract_symbol_test): Expect to fail for MIPS targets.
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r--ld/testsuite/ld-scripts/script.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index 03d5d4e..fc95658 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