aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-12-01 21:12:39 +0000
committerDaniel Jacobowitz <drow@false.org>2004-12-01 21:12:39 +0000
commit6db74b6f2184de5ed25463568a5bebe0ef04c4bd (patch)
tree33d2ec53c0069ac1eaf478d2db4903375e3df849 /ld
parent515921d78fe2551bc68a2a4f73f5ea8c900b4bd5 (diff)
downloadgdb-6db74b6f2184de5ed25463568a5bebe0ef04c4bd.zip
gdb-6db74b6f2184de5ed25463568a5bebe0ef04c4bd.tar.gz
gdb-6db74b6f2184de5ed25463568a5bebe0ef04c4bd.tar.bz2
* ld-selective/selective.exp: Use -print-libgcc-file-name for
ARM and v850 also.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-selective/selective.exp11
2 files changed, 11 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index ea248c8..05f91c9 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * ld-selective/selective.exp: Use -print-libgcc-file-name for
+ ARM and v850 also.
+
2004-11-24 Paul Brook <paul@codesourcery.com>
* ld-arm/mixed-lib.sym: Update for THUMB_FUNC change.
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index 6672911..801a72b 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -1,5 +1,6 @@
# Expect script for LD selective linking tests
-# Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004
+# Free Software Foundation, Inc.
#
# 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
@@ -110,15 +111,15 @@ foreach testitem $seltests {
}
# V850 targets need libgcc.a
- # FIXME: This does not work with installed toolchains!
if [istarget v850*-*-elf] {
- set objfile "$objfile -L ../gcc -lgcc"
+ catch "exec $CC -print-libgcc-file-name" libgcc
+ set objfile "$objfile $libgcc"
}
# ARM targets need libgcc.a in THUMB mode so that __call_via_r3 is provided
- # FIXME: This does not work with installed toolchains!
if {[istarget arm-*-*] || [istarget xscale-*-*]} {
- set objfile "$objfile -L ../gcc -lgcc"
+ catch "exec $CC -print-libgcc-file-name" libgcc
+ set objfile "$objfile $libgcc"
}
# HPPA linux targets need libgcc.a for millicode routines ($$dyncall).