This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: SH relocation differences in older versions of the binutils
- From: Jeff Baker <jbaker at qnx dot com>
- To: Jeff Baker <jbaker at qnx dot com>, 'DJ Delorie' <dj at redhat dot com>
- Cc: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- Date: Tue, 6 Jan 2004 15:47:57 -0500
- Subject: 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" ?