This is the mail archive of the libc-alpha@sources.redhat.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]
Other format: [Raw text]

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.


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