cannot find crt0.o/-lc
nick clifton
nickc@redhat.com
Thu Jun 28 15:06:00 GMT 2012
Hi Andreas,
> I found out that the error with -lc is connected with the libc and
> that the crt0.o is an initialisation file.
> So where and how should i describe this files?
libc is the C library. This is usually created by porting one of the C
library implementations[1] to your particular target.
crt0.o is an initialization file. There are often other initialization
files like crt1.o and crtbegin.o. The choice is target specific. You
will have to write the source for these files yourself, but you could
take a look at the libgloss library sources for examples of how this has
been done for other targets.
Cheers
Nick Clifton
[1] eg glibc, newlib, uclibc,
http://ieee.uwaterloo.ca/coldfire/gcc-doc/docs/porting_1.html
http://www.uclibc.org/
More information about the Binutils
mailing list