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 20:32:20 +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 Tue, Feb 13, 2001 at 07:31:59PM +1100, Alan Modra wrote:
> > 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.
>
> Nope. That's called before relocate_section.
Err, perhaps I spoke too soon. I tried a similar experiment on elf32-hppa
as one stage, and found $global$ undefined. Maybe elf64-ia64 does things
differently.
Goes away and looks.
Ah, hmm. Fairly obvious lack of setting h->root.type, value etc. in
elf32-hppa.c:elf32_hppa_set_gp. Thanks! This discussion has led to a
code improvement.
Alan
--
Linuxcare. Support for the Revolution.