This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problems while cross compiling for ARM
- To: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Subject: Re: [ECOS] Problems while cross compiling for ARM
- From: Rafael Rodríguez Velilla <rrv at tid dot es>
- Date: Wed, 08 Nov 2000 11:07:26 +0100
- Organization: Telefónica I+D
- References: <3A092BFD.28088.154496@localhost>
It seems that you haven't used arm-elf-gcc with the option -nostdlib. If
you don't specify this option, gcc tries to link your program against
crt0.o, an object that should contain the initialization code.
In the "getting started guide" of eCos I found information on how to
compile for eCos. eCos uses its own initialization code so it doesn't need
crt0.o.
Igor Trevisan wrote:
> Hi.
>
> I built an ARM-Thumb development tool for Linux following step
> by step all the instructions I found in the page:
> "Building the thumb-elf development tools for Linux",
> and I'm still trying to cross-compile a simple "hello.c" file but I don't
> succeed.
> I'm using the tool without eCos.
> Now my arm-gcc find the include files; but I have to do with the
> following new error message:
>
> > /tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.97/../../../../arm-
> elf/bin/ld:
> > cannot open crt0.o: File o directory inesistente
> > collect2: ld returned 1 exit status
>
> What can I do to avoid this problem?
--
Rafael Rodríguez Velilla rrv@tid.es
Telefónica I+D http://www.tid.es
Telf: 34 - 1 - 91 337 4270