This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] PPC64 elf configure
- From: Richard Henderson <rth at twiddle dot net>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Steve Munroe <sjmunroe at us dot ibm dot com>, Alan Modra <amodra at bigpond dot net dot au>, libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Wed, 12 Mar 2003 14:34:46 -0800
- Subject: Re: [PATCH] PPC64 elf configure
- References: <20030312140018.A446@twiddle.net> <200303122204.h2CM4uw31136@magilla.sf.frob.com>
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~