ld won't complain if asked to link obj files of different arches

Alan Modra amodra@bigpond.net.au
Sat Dec 21 18:07:00 GMT 2002


On Sat, Dec 21, 2002 at 11:13:26AM +0000, Nick Clifton wrote:
>   mn10300-elf-gcc -c foo.c
>   gcc             -c bar.c      # native gcc
>   mn10300-elf-ld  foo.o bar.o
> 
> How can an x86 object file and an mn10300 object file work in the same
> executable ?

Easy.  bar.c just contains variables.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list