IA-64 gp problem with PROVIDE and linker relaxation conflict

Alan Modra alan@linuxcare.com.au
Tue Feb 13 01:32:00 GMT 2001


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.



More information about the Binutils mailing list