This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ARM linker will allow linking with non-arm object files
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: fakber at arcturusnetworks dot com
- Cc: binutils at sources dot redhat dot com
- Date: 01 Mar 2002 11:20:06 +0000
- Subject: Re: ARM linker will allow linking with non-arm object files
- References: <200202152006.g1FK6vq32315@arcturusnetworks.com>
Hi Faisal,
> The problem I'm encountering is that the linker will link in objects
> that have been compiled for other targets.
>
> Is this correct?
Essentially yes. The linker has been designed to be able to read in
input files in multiple different formats and convert them into a
single output format whilst it links them. Of course it is up to the
programmer to ensure that the input files can be linked together. So
for example this feature might be used to link in files in the
"binary" or "ihex" formats into an executable.
In this particular case, of course, it does not make a lot of sense to
link an x86 object file and an ARM object file together since the ARM
cannot execute x86 instructions. (Well unless someone has written an
emulator...). But then why would anyone even try to link together
these two different styles of input file ?
Cheers
Nick