binutils: "unexpected reloc type 0x17" on sparc

Ian Lance Taylor ian@zembu.com
Thu Jun 28 15:34:00 GMT 2001


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



More information about the Binutils mailing list