brk(2) trouble

Roland McGrath roland@redhat.com
Fri Nov 22 00:39:00 GMT 2002


> Yes. The problem is that ``__brk (0)'' does the same on NetBSD.  Thus,
> ``__minbrk'' has to be initialized to something and I have trouble
> finding the right place to initialize ``__minbrk'' as well as finding
> the right value.

Ok.  It could be possible to do something with searching the dynamic
linker's data structures to find the end of the data segment for the
executable.  But probably what you should do is put _end in the Versions
script under GLIBC_2.0 so that references in libc like your __minbrk
initializer value will be resolved by the dynamic linker to the program's _end.



More information about the Libc-alpha mailing list