aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-05-29 19:04:42 +0000
committerIan Lance Taylor <ian@airs.com>1998-05-29 19:04:42 +0000
commit8c02e37df81fa71779c73be1dbc4ffecafcf1a82 (patch)
tree0d65e329d32dd5ab385601413d4c415a5107dc3e /ld
parentdcb76edbb8b813ffc72b2e113d991ffc5de3aae9 (diff)
downloadgdb-8c02e37df81fa71779c73be1dbc4ffecafcf1a82.zip
gdb-8c02e37df81fa71779c73be1dbc4ffecafcf1a82.tar.gz
gdb-8c02e37df81fa71779c73be1dbc4ffecafcf1a82.tar.bz2
* 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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog19
-rw-r--r--ld/testsuite/ld-srec/srec.exp45
2 files changed, 48 insertions, 16 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c2c4a3f..6b5f62d 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index 256e7b9..7a52c89 100644
--- a/ld/testsuite/ld-srec/srec.exp
+++ b/ld/testsuite/ld-srec/srec.exp
@@ -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"