This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libc behind the curtain


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

Attachment: signature.asc
Description: This is a digitally signed message part.


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