bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix ld-selective tests for Thumb


From: Nick Clifton
Subject: Fix ld-selective tests for Thumb
Date: 14 Jan 2002 15:44:59 +0000

Hi Guys,

  I am applying the following patch to fix a couple of unexpected
  failures for the ARM toolchain when running the ld-selective tests
  and using the THUMB multilibs.  In this mode GCC will generate a
  reference to a function called __call_via_r3 which is provided by
  libgcc.a, so it is necessary to include this library on the link
  command line.

Cheers
        Nick

2002-01-14  Nick Clifton  <address@hidden>

        * ld-selective/selective.exp: For ARM targets, lnk with libgcc.a.

Index: ld/testsuite/ld-selective/selective.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/selective.exp,v
retrieving revision 1.20
diff -c -3 -p -r1.20 selective.exp
*** selective.exp       2001/08/21 16:04:37     1.20
--- selective.exp       2002/01/14 15:43:15
*************** foreach testitem $seltests {
*** 101,106 ****
--- 101,111 ----
        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"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]