This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] fix ld-elf/stabs.d for alpha-linux
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils at sourceware dot org
- Date: Thu, 2 Oct 2008 13:01:11 +0200
- Subject: [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-*-*
#...