public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Linking of object files from different compilers for ARM
@ 2005-10-14  8:18 Yaroslav Karulin
  2005-10-14 15:26 ` Daniel Jacobowitz
  2005-10-18 22:07 ` Paul Brook
  0 siblings, 2 replies; 3+ messages in thread
From: Yaroslav Karulin @ 2005-10-14  8:18 UTC (permalink / raw)
  To: gcc

   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?
-- 
Yaroslav

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linking of object files from different compilers for ARM
  2005-10-14  8:18 Linking of object files from different compilers for ARM Yaroslav Karulin
@ 2005-10-14 15:26 ` Daniel Jacobowitz
  2005-10-18 22:07 ` Paul Brook
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-10-14 15:26 UTC (permalink / raw)
  To: Yaroslav Karulin; +Cc: gcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linking of object files from different compilers for ARM
  2005-10-14  8:18 Linking of object files from different compilers for ARM Yaroslav Karulin
  2005-10-14 15:26 ` Daniel Jacobowitz
@ 2005-10-18 22:07 ` Paul Brook
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Brook @ 2005-10-18 22:07 UTC (permalink / raw)
  To: gcc; +Cc: Yaroslav Karulin

On Friday 14 October 2005 07:49, 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 CodeSourcery releases are made off csl-arm-branch in CVS.

I think all the EABI changes are now in 4.1.
You need to configure for the arm-eabi target, not arm-elf.

Note that theres no such thing as the "gcc linker". You probably mean GNU 
binutils/ld.

Paul

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-18 20:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-14  8:18 Linking of object files from different compilers for ARM Yaroslav Karulin
2005-10-14 15:26 ` Daniel Jacobowitz
2005-10-18 22:07 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).