+Tue Dec 19 18:01:01 1995 Ian Lance Taylor <ian@cygnus.com>
+
+ * ld-srec/srec.exp: Add setup_xfails for XCOFF targets.
+
Fri Dec 15 16:36:17 1995 Ian Lance Taylor <ian@cygnus.com>
+ * ld-srec/srec.exp: On a29k targets, use --defsym to define
+ V_SPILL and V_FILL.
+ * ld-srec/sr1.c (V_SPILL, V_FILL): Remove definitions.
+ * ld-srec/sr3.cc: Likewise.
+
* ld-srec/srec.exp: Remove i960 COFF setup_xfail.
Sat Dec 2 01:20:31 1995 Ian Lance Taylor <ian@cygnus.com>
global sizeof_headers
global host_triplet
+ set flags ""
+
# 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
# poorly with a.out.
if { $sizeof_headers } {
- set targ "-Ttext 0x1000"
- } else {
- set targ ""
+ set flags "$flags -Ttext 0x1000"
}
- if { ![ld_simple_link $ld tmpdir/sr1 "$targ $objs"] \
- || ![ld_simple_link $ld tmpdir/sr2.sr "$targ -oformat srec $objs"] } {
+ # The a29k compiled code calls V_SPILL and V_FILL. Since we don't
+ # need to run this code, but we don't have definitions for those
+ # functions, we just define them out.
+ if [istarget a29k*-*-*] {
+ set flags "$flags --defsym V_SPILL=0 --defsym V_FILL=0"
+ }
+
+ if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \
+ || ![ld_simple_link $ld tmpdir/sr2.sr "$flags -oformat srec $objs"] } {
fail $test
return
}
# out.
setup_xfail "mips*-*-elf*" "mips*-*-irix5*" "mips*-*-irix6*"
+# The S-record linker doesn't do the magic TOC handling that XCOFF
+# linkers do.
+setup_xfail "*-*-aix*" "*-*-xcoff*"
+
run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o"
# Now try linking a C++ program with global constructors and
# See above.
setup_xfail "i*86-*-aout*"
setup_xfail "mips*-*-elf*" "mips*-*-irix5*" "mips*-*-irix6*"
+setup_xfail "*-*-aix*" "*-*-xcoff*"
run_srec_test $test2 "tmpdir/sr3.o"