problem with arm-elf-gcc cross-compiler

Olivier BOLDARINO o.boldarino@alplog.fr
Tue Jun 3 13:16:00 GMT 2003


Hi all,

I have installed the ARM developpment tools for Linux (binutils 2.12, gcc 
2.95.3, gdb 5.3) as described in the ecos site 
(http://sources.redhat.com/ecos/tools/linux-arm-elf.html).

I try to build a .elf binary file with this cross-compiler for an arm7 target, 
but the following problem occurs:
arm-elf-gcc -mcpu=arm7tdmi valid_main.o -o valid.elf -Tvalid.ld -nostdlib 
-L/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.3 -lgcc
/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o): dans 
la fonction `__do_global_ctors':
__main.o(.text+0xbc): référence indéfinie vers `atexit' -A
collect2: ld returned 1 exit status
make: *** [valid.elf] Erreur 1

What's wrong?

thanks for your help,

Olivier Boldarino



More information about the Gcc-help mailing list