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]

Re: binutils: "unexpected reloc type 0x17" on sparc


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


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