about arm-linux-ld

蔡栋 caidong at kedacom.com
Wed Nov 23 10:40:16 UTC 2005


蔡栋,您好!

	I am sorry the link command is :

arm-linux-ld --start-group -L /opt/arm/lib/gcc/arm-linux-uclibc/3.4.3/ -I /opt/arm/lib/gcc/arm-linux-uclibc/3.4.3/include lock_flash.o main.o -lc  --end-group  -o lock 

======= 2005-11-23 18:35:49 您在来信中写道:=======

>busybox,您好!
>
>about arm-linux-ld
>
>I want to link two object (main.o & lock_flash.o) into one executable object called "lock".but I can't execute it in busybox with it shows "-ash: lock: not found",
>
>The command I used following:
>
>1) compile main.c and lock_flash.c: 
>arm-linux-gcc -o2 -c -o main.o main.c
>arm-linux-gcc -o2 -c -o lock_flash.o lock_flash.c 
>
>2) link two object: 
>rm-linux-ld --start-group -L /opt/arm/lib/gcc/arm-linux-uclibc/3.4.3/ -I /opt/arm/lib/gcc/arm-linux-uclibc/3.4.3/include lock_flash.o main.o -lgcc /opt/arm/lib/crt0.o --end-group  -o lock 
>
>then system show following message:
>
>arm-linux-ld: warning: cannot find entry symbol _start; defaulting to 00008558
>
>beacuse of I don't use crt0.o ,so the system output above message.but I can't find crt0.o in /opt/arm/lib/gcc/arm-linux-uclibc/3.4.3 directory.
>
>3) I execute it in my arm board ,linux show "-ash: lock: not found"
>
>I don't know why,Could you give me any clue ? thank you very much!!!
>
>        best regards!!
>
> 				
>
>        蔡栋
>        caidong at kedacom.com
>          2005-11-23

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        蔡栋
        caidong at kedacom.com
          2005-11-23



More information about the busybox mailing list