Problem with __malloc_hooks :-(
Mark Kettenis
kettenis@wins.uva.nl
Sun Oct 31 06:41:00 GMT 1999
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
More information about the Libc-alpha
mailing list