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

Tristan Gingold gingold@adacore.com
Fri Oct 3 12:58:00 GMT 2008


Hi Nick,

here is the patch that disable the test on alpha.

Tristan.

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

       * ld-elf/stab.d: Don't run on alpha (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  3 Oct 2008 12:55:47 -0000
***************
*** 2,8 ****
   #as: -gstabs
   #readelf: -S --wide
   #ld:
! #notarget: ia64-*-*

   #...
     \[[0-9 ][0-9]\] \.stab +PROGBITS +0+ [0-9a-f]+ [0-9a-f]+ [0-9a-f] 
+ +[1-9]+ +0.*
--- 2,8 ----
   #as: -gstabs
   #readelf: -S --wide
   #ld:
! #notarget: "ia64-*-*" "alpha*"

   #...
     \[[0-9 ][0-9]\] \.stab +PROGBITS +0+ [0-9a-f]+ [0-9a-f]+ [0-9a-f] 
+ +[1-9]+ +0.*


On Oct 2, 2008, at 8:08 PM, Nick Clifton wrote:

> Hi Tristan,
>
>> To solve this issue I propose to add '-Ttext=0' option to the link.
>> (The other possibility is to disable the test on alpha).
>
> This introduces new linker testsuite failures in the following ports:
>
>   d10v-elf:
>     address 0x2 of tmpdir/dump section .text is not within region INSN
>
>   msp430-elf:
>     address 0x2 of tmpdir/dump section .text is not within region text
>
>   xstormy16-elf:
>     address 0x4 of tmpdir/dump section .text is not within region ROM
>
>
> So maybe an exception for the alpha is better.




More information about the Binutils mailing list