diff options
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-undefined/undefined.exp | 36 |
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 |