linking problem wuth crt0.o

salut ! fiquetma@ensieta.fr
Wed May 2 09:14:00 GMT 2007


hello !

Here is my problem  :

I am trying to link a simple c program, which only increments a variable,
with crt0.o.
I am working with gnuarm-3.4.3 on a linux x 86 machine.

when I enter the command : 
/gnuarm-3.4.3/bin/arm-elf-ld -o incrementation.x crt0.o incrementation.o

I get : 
incrementation.o(.text+0xf4):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
multiple definition of `_mainCRTStartup'
crt0.o(.text+0x0):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
first defined here
incrementation.o(.data+0x10): In function `__stack_base__':
: multiple definition of `__stack_base__'
crt0.o(.data+0x8):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:38:
first defined here
incrementation.o(.text+0xf4):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
multiple definition of `_start'
crt0.o(.text+0x0):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
first defined here
incrementation.o(.text+0xf4):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
multiple definition of `start'
crt0.o(.text+0x0):../../../../../../newlib-1.12.0/newlib/libc/sys/arm/crt0.S:36:
first defined here

I would be really grateful if someone could tell me what it means.
Thank you in advance !




-- 
View this message in context: http://www.nabble.com/linking-problem-wuth-crt0.o-tf3679383.html#a10282260
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list