aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-14 15:46:50 +0000
committerNick Clifton <nickc@redhat.com>2002-01-14 15:46:50 +0000
commit8f2a69559a4dbfde37b52a853604b6936ace78ca (patch)
tree8d30ad4d819249c1a22ae0c5dbaf08639792c25f /ld/testsuite/ld-selective
parentce058b6cfbeef8fcc81f432c17b160f45ace7956 (diff)
downloadgdb-8f2a69559a4dbfde37b52a853604b6936ace78ca.zip
gdb-8f2a69559a4dbfde37b52a853604b6936ace78ca.tar.gz
gdb-8f2a69559a4dbfde37b52a853604b6936ace78ca.tar.bz2
For ARM targets, link with libgcc.a.
Diffstat (limited to 'ld/testsuite/ld-selective')
-rw-r--r--ld/testsuite/ld-selective/selective.exp8
1 files changed, 6 insertions, 2 deletions
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index c25019d..b4bc2ec 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 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+# Copyright 1998, 1999, 2000, 2001, 2002 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
@@ -101,6 +101,11 @@ foreach testitem $seltests {
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"
+ }
+
# m6811/m6812 code has references to soft registers.
if {[istarget m6811-*-*] || [istarget m6812-*-*]} {
set objfile "$objfile --defsym _.frame=0 --defsym _.d1=0"
@@ -184,4 +189,3 @@ foreach testitem $seltests {
pass $testname
}
}
-