aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-02-12 11:10:11 +0000
committerAlan Modra <amodra@gmail.com>2002-02-12 11:10:11 +0000
commit4f70f93f32fb13d60062846ca5faea61e3c95fe8 (patch)
tree766ab215f136f1620578cf9a96b59e4dfbd0dc6d /ld/testsuite
parent5c1e36e18ca9126927feab7bf131737578bed2dd (diff)
downloadgdb-4f70f93f32fb13d60062846ca5faea61e3c95fe8.zip
gdb-4f70f93f32fb13d60062846ca5faea61e3c95fe8.tar.gz
gdb-4f70f93f32fb13d60062846ca5faea61e3c95fe8.tar.bz2
* ld-selective/selective.exp: Link against libgcc on
hppa*-*-linux* targets.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-selective/selective.exp16
2 files changed, 16 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index d95cd0c..f0b04ca 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * ld-selective/selective.exp: Link against libgcc on
+ hppa*-*-linux* targets.
+
2002-02-11 Alexandre Oliva <aoliva@redhat.com>
* 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 bdea212..e9cf48f 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)] } {