This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Entry point for LD
- To: gcc at gcc dot gnu dot org
- Subject: Entry point for LD
- From: Dainius <vakaras at delfi dot lt>
- Date: Fri, 28 Sep 2001 12:20:13 +0200
- Organization: Wilhelm Mikroelektronik, GmbH
- Reply-To: Dainius <vakaras at delfi dot lt>
Hello,
I wanted to compile and link simple program for ARM-ELF. But even,
linked used default entry point (0x8000) even if I specify other one
(for ex., arm-elf-ld.exe -o test.bin -e 0 test.obj).
So I got huge test.bin file (over 32k). If I'd not specify -e 0, I'd
get warning about default entry point "0x00008000".
I tryed to compile and link with arm-elf-gcc:
arm-elf-gcc -o test.bin -e 0 test.c.
But then I got error:
...../arm-elf/bin/ld: can not find -lc
collect2: ld returned 1 exit status
Where can be a problem? What I did wrong?
------------
Best regards,
Dainius