This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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


On Fri, Jun 29, 2001 at 07:16:48AM +0200, Jakub Jelinek wrote:
> On Thu, Jun 28, 2001 at 03:42:52PM -0700, David S. Miller wrote:
> > Actually, it is even more confusing now, because things worked
> > perfectly fine under Linux previously as far as we know right?
> > It was emitting R_SPARC_32 and not R_SPARC_UA32.
> > 
> > I mean, I'll tool around in the gcc-3.0 and cvs binutils sources
> > to try and figure this out, but someone here can probably dig into
> > it more quickly than I at the moment.
> 
> That's why I asked for the library in question, so that it is clear whether
> glibc's dl-machine.h needs to be changed or binutils fixed.
> 

One thing you might like to consider doing is to massage the reloc type
depending on its offset, before calling bfd_elf32_swap_reloca_out
(elf32-sparc.c:1531).  That way, you'll only get the UA relocs when you
really need them.

-- 
Alan Modra


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