This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: help regarding ld


Hi,

This is a binutils question and not a gcc question , so replying only on the binutils list. Use the -entry command line option for arm-elf-ld to specify the entry point for your code. (The default entry point _start is specified from the default linker script which is assumed to be defined in one of the files being linked finally to produce the executable.) .

cheers
Ramana



hi,
   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

it produces one a.out file..

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

thanks in advance




--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)


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