This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: IA-64 gp problem with PROVIDE and linker relaxation conflict
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: IA-64 gp problem with PROVIDE and linker relaxation conflict
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Tue, 13 Feb 2001 19:31:59 +1100 (EST)
- cc: Jim Wilson <wilson at cygnus dot com>, binutils at sources dot redhat dot com
On Tue, 13 Feb 2001, Richard Henderson wrote:
> On Mon, Feb 12, 2001 at 08:37:18PM -0800, Jim Wilson wrote:
> > If I create a program that explicitly refers to the symbol __gp, and has
> > such a large text section that there are out-of-range calls and thus
> > requires -relax, then the value of __gp ends up wrong after the link.
>
> Easiest would be to remove __gp from the default link scripts.
That would give you an "undefined symbol" error if __gp is referenced
from an object file. elfxx_ia64_final_link is too late in the link.
--
Linuxcare. Support for the Revolution.