This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem with arm-elf-gcc cross-compiler


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


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