[PATCH] PPC64 elf configure

Richard Henderson rth@twiddle.net
Wed Mar 12 22:35:00 GMT 2003


On Wed, Mar 12, 2003 at 02:04:56PM -0800, Roland McGrath wrote:
> > This doesn't mean SDA.  It means _all_ (data?) symbols can be
> > addressed without using the GOT.  (Certainly for Alpha this is
> > only true of data symbols.)
> 
> Why only for data?  

Well, it's *possible* to do it for functions as well, but if we
do the got thing, we have relocations that can allow the linker
to relax the indirect call to a direct call, if it's in range.
Which it always is for code this small.  The relaxation couldn't
be done if we used gp-relative relocations instead.

At present the dynamic linker doesn't take the address of a 
function (at least that early) so things work out peachy.


r~



More information about the Libc-alpha mailing list