This is the mail archive of the binutils@sources.redhat.com 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]

Re: IA-64 gp problem with PROVIDE and linker relaxation conflict


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.


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