This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFE: dl_iterate_phdr, r_debug.r_brk usability for introspection
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: John Reiser <jreiser at bitwagon dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 13 Sep 2015 19:30:21 +0200
- Subject: Re: RFE: dl_iterate_phdr, r_debug.r_brk usability for introspection
- Authentication-results: sourceware.org; auth=none
- References: <55F5A822 dot 1050609 at bitwagon dot com>
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."