tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dl_iterate_phdr(3) include the ELF loader
> On Sep 10, 2019, at 7:40 PM, Kamil Rytarowski <n54%gmx.com@localhost> wrote:
>
> On 10.09.2019 18:24, Joerg Sonnenberger wrote:
>> On Tue, Sep 10, 2019 at 05:42:41PM +0200, Kamil Rytarowski wrote:
>>> dl_iterate_phdr(3) as of now skips the ELF loader.
>>
>> I find that to be sensible behavior, so why not start by descriping why
>> it is a problem?
>>
>> Joerg
>>
>
> dl_iterate_pthr(3) is/was Linux-specific function and we break compat
> with it (but I skip .Sh HISTORY entry whether Linux was really the first
> user).
>
> All tested ELF OSs except NetBSD return the ELF loader as DSO.
If there are N operating systems that have this function, and N-1 behave one way, then it seems logical that the odd-ball should conform, for the benefit of 3rd-party users of the API.
-- thorpej
Home |
Main Index |
Thread Index |
Old Index