This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Entry point for LD


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



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