Binutils compatilibty

Daniel Jacobowitz drow@false.org
Fri Mar 25 15:35:00 GMT 2005


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



More information about the Binutils mailing list