This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking of object files from different compilers for ARM
- From: Daniel Jacobowitz <drow at false dot org>
- To: Yaroslav Karulin <yaroslav at hybrid dot fi>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 14 Oct 2005 11:24:58 -0400
- Subject: Re: Linking of object files from different compilers for ARM
- References: <434F5506.7010207@hybrid.fi>
On Fri, Oct 14, 2005 at 09:49:42AM +0300, Yaroslav Karulin wrote:
> Hello!
>
> I have two files: foo.c and main.c. foo.c is compiled with RVTC 2.2
> compiler. main.c is compiled with gcc compiler (configured with
> --target=arm-elf). I cannot link them together using gcc linker.
> But it's possible to link files if I use CodeSourcery version of gcc.
> CodeSourcery guys writes that they have added full EABI support and hope
> to submit it to the gcc 4.1.
> So, the question is what's the difference between CodeSourcery's
> version of gcc and FSF version? And is EABI support really submitted to
> the gcc 4.1?
The difference is that it's configured for an EABI target, not an ELF
(legacy) target. Build an arm-none-eabi compiler instead of an arm-elf
compiler and it should work.
--
Daniel Jacobowitz
CodeSourcery, LLC