From: Ian Lance Taylor Date: Fri, 26 Jan 1996 23:43:29 +0000 (+0000) Subject: * ld-undefined/undefined.exp: ELF targets should now pass the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba7db99126fd91301524fbd480d9e8a273407af9;p=binutils-gdb.git * ld-undefined/undefined.exp: ELF targets should now pass the undefined line test. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3f6680200c5..40160995275 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,12 @@ +Fri Jan 26 18:43:03 1996 Ian Lance Taylor + + * ld-undefined/undefined.exp: ELF targets should now pass the + undefined line test. + +Thu Jan 25 15:36:13 1996 Ian Lance Taylor + + * ld-empic/empic.exp: Update for change to MIPS disassembler. + Mon Jan 15 15:05:53 1996 Ian Lance Taylor * ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5* diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp index 168f51c6ff2..9a767bd2e4f 100644 --- a/ld/testsuite/ld-undefined/undefined.exp +++ b/ld/testsuite/ld-undefined/undefined.exp @@ -21,6 +21,13 @@ set testund "undefined" set testfn "undefined function" set testline "undefined line" +if { [which $CC] == 0 } { + untested $testund + untested $testfn + untested $testline + return +} + if ![ld_compile "$CC -g" $srcdir$subdir/undefined.c tmpdir/undefined.o] { unresolved $testund unresolved $testfn @@ -30,10 +37,12 @@ if ![ld_compile "$CC -g" $srcdir$subdir/undefined.c tmpdir/undefined.o] { catch "exec rm -f tmpdir/undefined" exec_output -send_log "$ld -o tmpdir/undefined tmpdir/undefined.o\n" -verbose "$ld -o tmpdir/undefined tmpdir/undefined.o" +# Using -e start prevents the SunOS linker from trying to build a +# shared library. +send_log "$ld -e start -o tmpdir/undefined tmpdir/undefined.o\n" +verbose "$ld -e start -o tmpdir/undefined tmpdir/undefined.o" -catch "exec $ld -o tmpdir/undefined tmpdir/undefined.o" exec_output +catch "exec $ld -e start -o tmpdir/undefined tmpdir/undefined.o" exec_output send_log "$exec_output\n" verbose "$exec_output" @@ -50,15 +59,21 @@ proc checkund { string testname } { set mu "undefined reference to `this_function_is_not_defined'" checkund $mu $testund +# ARM PE defaults to using stabs debugging, which we can't handle for +# a COFF file. +setup_xfail "arm*-*-pe*" + set mf "tmpdir/undefined.o: In function `function':" checkund $mf $testfn -# ELF targets currently can not get line number information (except -# for MIPS ELF). -setup_xfail "*-*-elf*" "*-*-sysv4*" "*-*-unixware*" "*-*-solaris*" "*-*-gnu*" -setup_xfail "hppa*-*-lites*" "m88*-harris-cxux*" "m88*-*-dgux*" -setup_xfail "powerpc*-*-eabi*" "*-stratus-*" "*-cbm-*" "*-ncr-*" -clear_xfail "mips-*-elf*" "mips-*-sysv4*" "mips-*-gnu*" +# 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*" set ml "undefined.c:9: undefined reference to `this_function_is_not_defined'" checkund $ml $testline