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]
Other format: [Raw text]

RE: SH relocation differences in older versions of the binutils


For example: If I send you some random .o that contains a reloc number 0x24
can you tell me if it's supposed to be an R_SH_LOOP_START or an R_SH_DIR8UW
just by examining the binary?

> I'm looking for a way to detect what version of the tools an object file
> was built with, not the version of the tools themselves.  I'm looking for
> an elegant way to determine whether an object contains relocations from
> before or after they were moved.
> 
> 
> > -----Original Message-----
> > From: DJ Delorie [mailto:dj@redhat.com]
> > Sent: Tuesday, January 06, 2004 2:51 PM
> > To: jbaker@qnx.com
> > Cc: binutils@sources.redhat.com
> > Subject: Re: SH relocation differences in older versions of the binutils
> >
> >
> > > Is there any way to determine whether a binary was built with 2.12.1
> vs
> > > 2.14.9 (or whatever)?  To maintain the maximum level of compatibility
> > I'd
> > > like to be able to dynamically translate the moved relocations.
> >
> > Um, you mean besides the obvious "as -version" ?


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