+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*
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
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"
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