This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: brk(2) trouble
- From: Roland McGrath <roland at redhat dot com>
- To: Momchil Velikov <velco at fadata dot bg>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Fri, 22 Nov 2002 00:34:34 -0800
- Subject: Re: brk(2) trouble
> 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.