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: ld won't complain if asked to link obj files of different arches


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


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