This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC64 elf configure


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~


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