This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: binutils: "unexpected reloc type 0x17" on sparc
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: binutils: "unexpected reloc type 0x17" on sparc
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 28 Jun 2001 15:34:45 -0700
- Cc: "David S. Miller" <davem at redhat dot com>, "H . J . Lu" <hjl at lucon dot org>, Tomasz Kłoczko <kloczek at rudy dot mif dot pg dot gda dot pl>, GNU C Library <libc-alpha at sourceware dot cygnus dot com>, binutils at sourceware dot cygnus dot com
- References: <Pine.LNX.4.21.0106282306000.11781-100000@rudy.mif.pg.gda.pl><20010628142842.B4072@lucon.org><15163.43942.129113.136647@pizda.ninka.net><20010628151740.A16519@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> On Thu, Jun 28, 2001 at 03:11:50PM -0700, David S. Miller wrote:
> > I was under the impression that R_SPARC_UA{32,64,16} should never show
> > up as a dynamic reloc.
>
> Why wouldn't they show up in dynamic relocs? There's no other point
> for having them! They are a speed optimization for the dynamic linker,
> so that it needn't assume R_SPARC_32 may be unaligned.
Pedantically speaking, that is not the only reason. They also permit
the program linker to run faster, because the relocation may be
assumed to be aligned within the section contents. It so happens that
the GNU linker does not take advantage of that possible optimization.
I expect that the Solaris linker does.
Ian