aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-01 10:49:08 +0000
committerNick Clifton <nickc@redhat.com>2004-10-01 10:49:08 +0000
commitf7bf754f1fad4a36b0e5ad7dc095a8e6bbd7a841 (patch)
tree203f10183b3d23ff4a72517dac335b98a3307c1e /ld
parent963a6417f4ecb14daec07b0dbb9fac1f36c544fd (diff)
downloadfsf-binutils-gdb-f7bf754f1fad4a36b0e5ad7dc095a8e6bbd7a841.zip
fsf-binutils-gdb-f7bf754f1fad4a36b0e5ad7dc095a8e6bbd7a841.tar.gz
fsf-binutils-gdb-f7bf754f1fad4a36b0e5ad7dc095a8e6bbd7a841.tar.bz2
PR 371
* ld-undefined/undefined.exp: Remove redundant XPASS specifications.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-undefined/undefined.exp36
2 files changed, 23 insertions, 19 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 35b9ec9..a76d6f9 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-01 Nick Clifton <nickc@redhat.com>
+
+ PR 371
+ * ld-undefined/undefined.exp: Remove redundant XPASS
+ specifications.
+
2004-10-01 Alan Modra <amodra@bigpond.net.au>
* ld-powerpc/tls.s (gd, ld): Set tls type for undefined syms.
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp
index ac7c986..3c323fe 100644
--- a/ld/testsuite/ld-undefined/undefined.exp
+++ b/ld/testsuite/ld-undefined/undefined.exp
@@ -72,28 +72,26 @@ checkund $mu $testund
# Just doesn't work for PA ELF. No clue why.
setup_xfail "hppa*-*-*elf*"
-# With dwarf-2, we can't get the function in which the reference
-# occurs; see below.
-setup_xfail "alpha*-*-linux*"
-setup_xfail "hppa*64*-*-*"
-setup_xfail "mn10300-*-elf"
-setup_xfail "sh-*-*"
-
set mf "tmpdir/undefined.o* In function `function':"
checkund $mf $testfn
-# COFF SH gets this test wrong--it reports line 10, because although
-# the jump is at line 9, the function address, and the reloc, is
-# stored at the end of the function.
-setup_xfail "sh-*-*"
-
-# ARM PE defaults to using stabs debugging, which we can't handle for
-# a COFF file.
-#setup_xfail "arm*-*-pe*"
-#setup_xfail "thumb*-*-pe*"
-
-# Just doesn't work for PA ELF. No clue why.
-setup_xfail "hppa*-*-*elf*"
+if [is_elf_format] {
+
+ # Just doesn't work for PA ELF. No clue why.
+ setup_xfail "hppa*-*-*"
+
+} else {
+
+ # COFF SH gets this test wrong--it reports line 10, because although
+ # the jump is at line 9, the function address, and the reloc, is
+ # stored at the end of the function.
+ setup_xfail "sh-*-*"
+
+ # ARM PE defaults to using stabs debugging, which we can't handle for
+ # a COFF file.
+ #setup_xfail "arm*-*-pe*"
+ #setup_xfail "thumb*-*-pe*"
+}
set ml "undefined.c:9: undefined reference to `*this_function_is_not_defined'"
# With targets that use elf/dwarf2, such as the arm-elf and thumb-elf