This is the mail archive of the libc-alpha@sourceware.cygnus.com 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]

Re: Problem with __malloc_hooks :-(


   Date: 31 Oct 1999 14:03:59 -0000
   From: Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>

   Hello,

   > Not surprising at all.  The only thing that could call it is a .so
   > initialiser or the glibc initialization code, and why should they?
   > 
   > [ld.so must not call the glibc malloc() before crt0 has run,
   >  so it would have to be called after crt0 and before main().]

   I may have been dreaming but until recently the earliest malloc()
   calls appeared to come from ld.so (on i586-linux).

There is a minimal malloc implimentation in ld.so (see
elf/dl-minimal.c) that's used before libc is loaded.

Mark


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