about arm-linux-ld

walter harms wharms at bfs.de
Wed Nov 23 12:04:53 UTC 2005


why do you not use  gcc -o lock main.o lock_flash.o ?

linking does not mean simply adding user provided objects.
You also need to add systemspecific object headers.
simply try gcc -v test.c on you host system and learn what he needs there.


re,
 walter




蔡栋 wrote:
> 蔡栋,您好!
> 
> 	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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox



More information about the busybox mailing list