[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: ABI support for special memory area



On Thu, Mar 30, 2017 at 12:37 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
>
> I see that you are now considering dl_iterate_phdr, which gives you
> access to the program headers, from where you can walk the section
> headers.  This looks like a good solution.
>
>>> I expect that libraries such as bdwgc might want to use the
>>> __gnu_mbind_setup callback as well, just to register freshly loaded shared
>>
>> Did you mean to mark pieces of memory garbage collectible? I guess it may
>> work.
>
> It's more for identifying roots to scan.
>
>>> objects and their data sections.  Can we make this work for multiple users?
>>>
>>
>> What did you mean by "multiple users"?
>
> Different libraries installing different hooks with similar
> intentions.

Yes, my dl_iterate_phdr approach works with multiple libraries.  Each of
them can call dl_iterate_phdr to process relevant segments.

-- 
H.J.