Entry point for LD

Dainius vakaras@delfi.lt
Fri Sep 28 03:17:00 GMT 2001


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




More information about the Gcc mailing list