diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-01-26 23:43:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-01-26 23:43:29 +0000 |
commit | ba7db99126fd91301524fbd480d9e8a273407af9 (patch) | |
tree | 502b1fcbd50fb831738869dc1c38d006704ea65b /ld/testsuite | |
parent | 86aac8eabe837aed915022d188da157ba5736c09 (diff) | |
download | gdb-ba7db99126fd91301524fbd480d9e8a273407af9.zip gdb-ba7db99126fd91301524fbd480d9e8a273407af9.tar.gz gdb-ba7db99126fd91301524fbd480d9e8a273407af9.tar.bz2 |
* ld-undefined/undefined.exp: ELF targets should now pass the
undefined line test.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-undefined/undefined.exp | 33 |
2 files changed, 33 insertions, 9 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3f66802..4016099 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,12 @@ +Fri Jan 26 18:43:03 1996 Ian Lance Taylor <ian@cygnus.com> + + * ld-undefined/undefined.exp: ELF targets should now pass the + undefined line test. + +Thu Jan 25 15:36:13 1996 Ian Lance Taylor <ian@cygnus.com> + + * ld-empic/empic.exp: Update for change to MIPS disassembler. + Mon Jan 15 15:05:53 1996 Ian Lance Taylor <ian@cygnus.com> * 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 168f51c..9a767bd 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 |