This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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-*-*

#...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]