This is the mail archive of the libc-help@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: where to find / how to rebuild crt1.c ...


  Hi!

On Sun, Dec 06, 2009 at 05:39:59PM +0000, ken smith wrote:
> A colleague has a need to rebuild crt1.c on amd64 with
> -fno-omit-frame-pointer added to CFLAGS. I am not familiar with glibc
> (neither is he) - and assumed that the source for this would be part
> of the distribution; apparently not.
> 
> Where can I get the source for crt1.c?

  it's built by some very heavy magic from stuff found within the csu/
directory - linking start.c, init.c and abi-note.c. But note that these
files usually get overriden from the sysdeps/ subdirectories, e.g.
start.c is also in sysdeps/unix/start.c. I think it's best to rebuild
whole libc without -fomit-frame-pointer, then take the file out of it.

				Petr "Pasky" Baudis


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