help regarding ld
Nick Clifton
nickc@redhat.com
Fri Mar 18 11:54:00 GMT 2005
Hi Aram,
> i am using the arm-elf-gcc compiler to generate the assembly code
>
> arm-elf-gcc -mthumb -S new.c
>
> after this i use the arm-elf-as for genrating machine code
>
> arm-elf-as new.s
Note - these two steps could be combined into one by using the -c switch
instead of the -S switch:
arm-elf-gcc -mthumb -c new.c
> it produces one a.out file..
Note: Despite its name this "a.out" file is not an executable program it
is just an object file that still needs to be linked. Naming the file
a.out is a "feature" of the assembler.
> arm-elf-ld a.out
>
> produces error like
>
> arm-elf-ld: warning: cannot find entry symbol _start; not setting start address
>
> how do i type the correct command line option for this
Try using gcc to control the entire process from compilation to final
link, like this:
arm-elf-gcc new.c
Cheers
Nick
More information about the Binutils
mailing list