[PATCH] fix ld-elf/stabs.d for alpha-linux

Tristan Gingold gingold@adacore.com
Thu Oct 2 11:00:00 GMT 2008


Hi,

ld-elf/stabs.d currently fails for alpha-linux target (both on the  
branch and on head).

The reason is quiet simple: the default entry point is above 4GB but  
the stab value is 32 bits.

To solve this issue I propose to add '-Ttext=0' option to the link.
(The other possibility is to disable the test on alpha).

Tristan.

ld/testsuite:
2008-10-02  Tristan Gingold  <gingold@adacore.com>

       * ld-elf/stab.d: Use -Ttext=0 for linking to avoid relocation
       overflow on 64 bits targets whose stab values is 32 bits.


*** ld/testsuite/ld-elf/stab.d  15 May 2006 00:48:44 -0000      1.2
--- ld/testsuite/ld-elf/stab.d  2 Oct 2008 10:55:11 -0000
***************
*** 1,7 ****
   #source: start.s
   #as: -gstabs
   #readelf: -S --wide
! #ld:
   #notarget: ia64-*-*

   #...
--- 1,7 ----
   #source: start.s
   #as: -gstabs
   #readelf: -S --wide
! #ld: -Ttext=0
   #notarget: ia64-*-*

   #...




More information about the Binutils mailing list