mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
* ld-undefined/undefined.exp: ELF targets should now pass the
undefined line test.
This commit is contained in:
@ -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>
|
Mon Jan 15 15:05:53 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
|
* ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
|
||||||
|
@ -21,6 +21,13 @@ set testund "undefined"
|
|||||||
set testfn "undefined function"
|
set testfn "undefined function"
|
||||||
set testline "undefined line"
|
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] {
|
if ![ld_compile "$CC -g" $srcdir$subdir/undefined.c tmpdir/undefined.o] {
|
||||||
unresolved $testund
|
unresolved $testund
|
||||||
unresolved $testfn
|
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
|
catch "exec rm -f tmpdir/undefined" exec_output
|
||||||
|
|
||||||
send_log "$ld -o tmpdir/undefined tmpdir/undefined.o\n"
|
# Using -e start prevents the SunOS linker from trying to build a
|
||||||
verbose "$ld -o tmpdir/undefined tmpdir/undefined.o"
|
# 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"
|
send_log "$exec_output\n"
|
||||||
verbose "$exec_output"
|
verbose "$exec_output"
|
||||||
|
|
||||||
@ -50,15 +59,21 @@ proc checkund { string testname } {
|
|||||||
set mu "undefined reference to `this_function_is_not_defined'"
|
set mu "undefined reference to `this_function_is_not_defined'"
|
||||||
checkund $mu $testund
|
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':"
|
set mf "tmpdir/undefined.o: In function `function':"
|
||||||
checkund $mf $testfn
|
checkund $mf $testfn
|
||||||
|
|
||||||
# ELF targets currently can not get line number information (except
|
# COFF SH gets this test wrong--it reports line 10, because although
|
||||||
# for MIPS ELF).
|
# the jump is at line 9, the function address, and the reloc, is
|
||||||
setup_xfail "*-*-elf*" "*-*-sysv4*" "*-*-unixware*" "*-*-solaris*" "*-*-gnu*"
|
# stored at the end of the function.
|
||||||
setup_xfail "hppa*-*-lites*" "m88*-harris-cxux*" "m88*-*-dgux*"
|
setup_xfail "sh-*-*"
|
||||||
setup_xfail "powerpc*-*-eabi*" "*-stratus-*" "*-cbm-*" "*-ncr-*"
|
|
||||||
clear_xfail "mips-*-elf*" "mips-*-sysv4*" "mips-*-gnu*"
|
# 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'"
|
set ml "undefined.c:9: undefined reference to `this_function_is_not_defined'"
|
||||||
checkund $ml $testline
|
checkund $ml $testline
|
||||||
|
Reference in New Issue
Block a user