summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-undefined
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
commitbdd0e04b2a2049a62b94d9c273aeb48de080dd25 (patch)
treec9ccb35c11bb4c2a8ee5d7d6843ea593c2134283 /ld/testsuite/ld-undefined
parentaf15735ed11ab517381bb7d186ddb9f560867950 (diff)
downloadbinutils-redhat-bdd0e04b2a2049a62b94d9c273aeb48de080dd25.tar.gz
PR 371
* ld-undefined/undefined.exp: Remove redundant XPASS specifications.
Diffstat (limited to 'ld/testsuite/ld-undefined')
-rw-r--r--ld/testsuite/ld-undefined/undefined.exp36
1 files changed, 17 insertions, 19 deletions
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp
index ac7c98600c..3c323fe511 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