This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: __main undefined symbol



  In message <38A07F6F.74D0673B@redcreek.com>you write:

  > You don't need crt.o or any other gcc libs.  Furthermore, you don't need
  > a _main or a __main function. You can specify the entry point in your
  > linker script file.  I understand that board support packages make life
  > easier, but for a custom embedded system you're better off writing your
  > own library.  You can then tell the compiler not to link against the
  > standard libs, write your own linker script, and not worry about
  > _main or crt.o.  Then you'll know exactly what's going on under the
  > hood, and personally, I feel a lot better that way.
No, you don't necessarily have a format where you have linker scripts or
the capabilities provided by linker scripts.

Think about a.out.
jeff


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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