* ld-undefined/undefined.exp: ELF targets should now pass the
authorIan Lance Taylor <ian@airs.com>
Fri, 26 Jan 1996 23:43:29 +0000 (23:43 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 26 Jan 1996 23:43:29 +0000 (23:43 +0000)
undefined line test.

ld/testsuite/ChangeLog
ld/testsuite/ld-undefined/undefined.exp

index 3f66802..4016099 100644 (file)
@@ -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*
index 168f51c..9a767bd 100644 (file)
@@ -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