This is the mail archive of the libc-alpha@sourceware.org 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: RFE: dl_iterate_phdr, r_debug.r_brk usability for introspection


John Reiser <jreiser@bitwagon.com> writes:

> In struct r_debug, change from
>     ElfW(Addr) r_brk;
> to
>     int (*r_brk)(struct r_debug *, unsigned long);
> and make .r_brk be a read+write member that is honored by ld-linux.
> Instead of ld_linux always calling the same internal function
> (with .r_brk being its address), have ld-linux call:
>     (void) (*r_debug.r_brk)(&r_debug, 0ul);

What is the meaning of the second parameter?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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