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: Binutils compatilibty


On Thu, Mar 24, 2005 at 03:48:27PM -0800, George Haddad wrote:
> Hi All,
> 
> I'm trying to link a file generated by GCC 3.4.x using
> binutils 2.15 with a library previously generated by
> GCC 2.9X and binutils 2.9.
> 
> I get the following error message -
> test.o: relocation size mismatch in libcortex.a .text
> final link failed: Archive object file in wrong format
> 
> This is probably a compatibility issue; is there any
> workaround for this issue ? Script ?
> 
> p.s. I don't have the sources for the library; so I
> can't recompile with GCC 3.4.x and binutils 2.15.

You didn't mention what target you are using.  It sounds like one of
your toolchains is REL, and the other is RELA; that is a pretty big
incompatibility.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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