This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: Problems while cross compiling for ARM


  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




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