Not linking 32-bit and 64-bit objects

David O'Brien obrien@FreeBSD.org
Sat Mar 16 10:26:00 GMT 2002


On Wed, Mar 13, 2002 at 01:25:19PM +1030, Alan Modra wrote:
> This should stop the linker trying to do silly things with incompatible
> relocs.
>
> 
> bfd/ChangeLog
> 	* elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
> 	when word size of input matches output word size.
> 
> ld/ChangeLog
> 	* ldlang.c (lang_check): Do relocatable link checks first, so that
> 	warn_mismatch can't override.  Check compatible and word size too.
 
I would love to see this committed to the 2.12 branch.  The lack of of a
good error message delayed getting BU 2.12 working on FreeBSD/sparc64 by
2 weeks due to a trivial human error.



More information about the Binutils mailing list