aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-undefined
diff options
context:
space:
mode:
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 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