libc behind the curtain
Mike Frysinger
vapier@gentoo.org
Mon Jun 11 09:59:00 GMT 2007
On Monday 11 June 2007, Metuki Sabhe wrote:
> On 6/11/07, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Monday 11 June 2007, Metuki Sabhe wrote:
> > > when I build a simple C program, I see it is linked against:
> > >
> > > crt1.o
> > > crti.o
> > > crtbegin.o
> > > -lgcc
> > > -lgcc_s
> > > crtend.o
> > > crtn.o
> > >
> > > What are those files ?
> >
> > the crt files are the C RunTime files while the -l libraries are internal
> > gcc libraries
>
> does the gcc libraries add code to the final executable too ?
only when it's needed ... give the linker -M to have ld print out a linker map
so you can see where everything is coming from and going to
> where can I read the sources for the C RunTime files (i didn't find any
> crt* in glibc-2.5) ?
start in the csu/ directory and work your way out from there
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070611/cd9290a7/attachment.sig>
More information about the Libc-alpha
mailing list