* ld-srec/srec.exp: Add xfails for powerpc*-*-eabi.

(run_srec_test): On mn10200, define __truncsipsi2_do_d2.
	* ld-srec/sr1.c (__main): Change return type to void.
	* ld-srec/sr3.cc (__main): Likewise.
	(__builtin_delete, __builtin_new): Likewise.
	(__get_dynamic_handler_chain): Return 0.
	(__get_eh_context): Likewise.
This commit is contained in:
Ian Lance Taylor 1998-05-29 19:04:42 +00:00
parent dcb76edbb8
commit 8c02e37df8
2 changed files with 48 additions and 16 deletions

View file

@ -1,3 +1,22 @@
Fri May 29 15:02:50 1998 Ian Lance Taylor <ian@cygnus.com>
* ld-srec/srec.exp: Add xfails for powerpc*-*-eabi.
(run_srec_test): On mn10200, define __truncsipsi2_do_d2.
* ld-srec/sr1.c (__main): Change return type to void.
* ld-srec/sr3.cc (__main): Likewise.
(__builtin_delete, __builtin_new): Likewise.
(__get_dynamic_handler_chain): Return 0.
(__get_eh_context): Likewise.
Thu May 21 15:21:33 1998 Nick Clifton <nickc@cygnus.com>
* ld-undefined/undefined.exp: Add support for thumb-pe target.
* ld-srec/srec.exp: Add support for arm-pe and thumb-pe targets.
Mon May 4 17:54:20 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* ld-shared/shared.exp: Remove setup_xfails for m68k-linux.
Mon May 4 17:12:06 1998 Ian Lance Taylor <ian@cygnus.com>
* ld-shared/main.c (shlib_overriddencall2): New function.

View file

@ -212,20 +212,6 @@ proc run_srec_test { test objs } {
set flags ""
# g++ sometimes generates references to __get_dynamic_handler_chain.
set flags "$flags --defsym __get_dynamic_handler_chain=0"
set flags "$flags --defsym ___get_dynamic_handler_chain=0"
# The mn10200 has out of line prologues and epilogues which the
# comiler uses when compiling the testcase. Define them so that
# we don't need to bring in libgcc.a
if [istarget mn10200-*-*] {
set flags "$flags --defsym ___prologue=0"
set flags "$flags --defsym ___epilogue_noreturn=0"
set flags "$flags --defsym ___epilogue_d0=0"
set flags "$flags --defsym ___epilogue_a0=0"
}
# If the linker script uses SIZEOF_HEADERS, use a -Ttext argument
# to force both the normal link and the S-record link to be put in
# the same place. We don't always use -Ttext because it interacts
@ -242,11 +228,32 @@ proc run_srec_test { test objs } {
set flags "$flags --defsym V_SPILL=0 --defsym V_FILL=0"
}
# ARM targets call __gccmain
if [istarget arm-*-coff] {
set flags "$flags --defsym ___gccmain=0"
}
if [istarget arm-*-pe] {
set flags "$flags --defsym ___gccmain=0"
}
# Thumb targets call __gccmain
if [istarget thumb-*-coff] {
set flags "$flags --defsym ___gccmain=0"
}
if [istarget thumb-*-pe] {
set flags "$flags --defsym ___gccmain=0"
}
# PowerPC EABI code calls __eabi.
if [istarget powerpc*-*-eabi*] {
set flags "$flags --defsym __eabi=0"
}
# mn10200 code calls __truncsipsi2_d0_d2.
if {[istarget mn10200*-*-*]} then {
set flags "$flags --defsym __truncsipsi2_d0_d2=0"
}
if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \
|| ![ld_simple_link $ld tmpdir/sr2.sr "$flags -oformat srec $objs"] } {
setup_xfail "hppa*-*-*elf*"
@ -313,7 +320,12 @@ setup_xfail "mips*-*-irix5*" "mips*-*-irix6*"
# The S-record linker doesn't do the magic TOC handling that XCOFF
# linkers do.
setup_xfail "*-*-aix*" "*-*-xcoff*"
setup_xfail "arm-*-coff"
# The S-record linker doesn't build ARM/Thumb stubs.
setup_xfail "thumb-*-coff*"
# The S-record linker doesn't build special EABI sections.
setup_xfail "powerpc*-*-eabi*"
run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o"
@ -335,6 +347,7 @@ if ![ld_compile "$CXX $CXXFLAGS -fgnu-linker" $srcdir/$subdir/sr3.cc tmpdir/sr3.
setup_xfail "i*86-*-aout*"
setup_xfail "mips*-*-irix5*" "mips*-*-irix6*"
setup_xfail "*-*-aix*" "*-*-xcoff*"
setup_xfail "arm-*-coff"
setup_xfail "thumb-*-coff*"
setup_xfail "powerpc*-*-eabi*"
run_srec_test $test2 "tmpdir/sr3.o"