RFE: dl_iterate_phdr, r_debug.r_brk usability for introspection

Andreas Schwab schwab@linux-m68k.org
Sun Sep 13 17:30:00 GMT 2015


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."



More information about the Libc-alpha mailing list