This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problem with __malloc_hooks :-(
> Date: 29 Oct 1999 15:40:03 -0000
> From: Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
> Ah, I think I see, __malloc_hook is now set too _early_ ? Not a
> single malloc() call has happened before main() (quite surprising) ?
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().]
--
Geoffrey Keating <geoffk@cygnus.com>