For ARM targets, link with libgcc.a.
authorNick Clifton <nickc@redhat.com>
Mon, 14 Jan 2002 15:46:50 +0000 (15:46 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 14 Jan 2002 15:46:50 +0000 (15:46 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-selective/selective.exp

index 17f8157..9646c08 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-14  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * ld-selective/selective.exp: For ARM targets, link with libgcc.a.
+
 2002-01-02  Chris Demetriou  <cgd@broadcom.com>
 
        * ld-mips-elf/empic1-ln.d: New file to test basic linking of
index c25019d..b4bc2ec 100644 (file)
@@ -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
     }
 }
-