[PATCH] PPC64 elf configure

Steve Munroe sjmunroe@us.ibm.com
Wed Mar 12 21:10:00 GMT 2003


Roland McGrath writes:

> Is there a reason this is impossible on PPC64?  I would think that 
values
> relative to the TOC address could work similarly to how they do on x86. 
> Is this not doable, or is it just that the compiler doesn't do it?  If 
the
> latter, ideally GCC should learn to do it, and then we should write a
> configure check that ascertains if the compiler is in fact doing it.

It may not be impossible but it is difficult. The ABI allows for the 
possibility of a GOT and small data area as a subset of the TOC, but I 
don't think PPC64 gcc supports SDA. Or at least it's was not getting used 
in the code generated for rtld.c. 

The biggest issue is that we don't support TOCs >64KB and we tend to blow 
the TOC on the larger libs. So putting more stuff into the TOC seems like 
a bad idea.

Alan will have a give the details.

> I'm making your change for now anyway, since it's the safe default.

Thanks



More information about the Libc-alpha mailing list