diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ee54023831..6419180e16 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2001-02-08 Stephane Carrez + + * ld-srec/srec.exp (run_srec_test): m6811 code has references + to soft registers, define them with --defsym. + * ld-selective/selective.exp: Likewise. + 2001-01-14 Hans-Peter Nilsson * ld-sh/sh.exp: Use --oformat srec, not -oformat srec. diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index 0df21f82a8..d2dc680b85 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -1,5 +1,5 @@ # Expect script for LD selective linking tests -# Copyright (C) 1998, 1999, 2000 Free Software Foundation +# Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -95,6 +95,12 @@ foreach testitem $seltests { set objfile "$objfile -L ../gcc -lgcc" } + # m6811/m6812 code has references to soft registers. + if {[istarget m6811-*-*] || [istarget m6812-*-*]} { + set objfile "$objfile --defsym _.frame=0 --defsym _.d1=0" + set objfile "$objfile --defsym _.d2=0" + } + if ![ld_simple_link $ld $ldfile "$ldflags [join $ldargs] $objfile"] { fail $testname continue diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp index f493f98cc6..5f1704332b 100644 --- a/ld/testsuite/ld-srec/srec.exp +++ b/ld/testsuite/ld-srec/srec.exp @@ -253,6 +253,13 @@ proc run_srec_test { test objs } { set flags "$flags --defsym __truncsipsi2_d0_d2=0" } + # m6811/m6812 code has references to soft registers. + if {[istarget m6811-*-*] || [istarget m6812-*-*]} { + set flags "$flags --defsym _.frame=0 --defsym _.d1=0 --defsym _.d2=0" + set flags "$flags --defsym _.d3=0 --defsym _.d4=0" + set flags "$flags --defsym _.tmp=0 --defsym _.xy=0" + } + # V850 targets need libgcc.a if [istarget v850*-*-elf] { set objs "$objs -L ../gcc -lgcc"