From: Alan Modra Date: Tue, 12 Feb 2002 11:10:11 +0000 (+0000) Subject: * ld-selective/selective.exp: Link against libgcc on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f70f93f32fb13d60062846ca5faea61e3c95fe8;p=binutils-gdb.git * ld-selective/selective.exp: Link against libgcc on hppa*-*-linux* targets. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d95cd0cb7c8..f0b04cab4c2 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-02-12 John David Anglin + + * ld-selective/selective.exp: Link against libgcc on + hppa*-*-linux* targets. + 2002-02-11 Alexandre Oliva * ld-sh/sh64/reldl64.rd: Add relocation symbol data in info field. diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index bdea212c8be..e9cf48f0533 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -5,12 +5,12 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -107,12 +107,18 @@ foreach testitem $seltests { if [istarget v850*-*-elf] { set objfile "$objfile -L ../gcc -lgcc" } - + # ARM targets need libgcc.a in THUMB mode so that __call_via_r3 is provided if {[istarget arm-*-*] || [istarget xscale-*-*]} { set objfile "$objfile -L ../gcc -lgcc" } - + + # HPPA linux targets need libgcc.a for millicode routines ($$dyncall). + if [istarget hppa*-*-linux*] { + catch "exec $CC -print-libgcc-file-name" libgcc + set objfile "$objfile $libgcc" + } + # m6811/m6812 code has references to soft registers. if {[istarget m6811-*-*] || [istarget m6812-*-*]} { set objfile "$objfile --defsym _.frame=0 --defsym _.d1=0" @@ -136,7 +142,7 @@ foreach testitem $seltests { } } - # Check each mandated symbol and optionally mandated values. + # Check each mandated symbol and optionally mandated values. foreach mustsym $mustsyms { if { [llength [concat $mustsym]] == 1 } { if { ![info exists nm_output($mustsym)] } {