On Fri, 28 Nov 2025 at 10:36, Bruno Haible <[email protected]> wrote:

>
> > There's one other case that occurs to me: what about platforms where
> dladdr
> > is not in libc, but there is no other implementation of "costly
> > relocatable"? Specifically, on Hurd, Android, Haiku and HP-UX.
>
> One might want to look how dladdr() is implemented on the first three of
> these systems. On the other hand, GNU packages on these systems have
> relatively
> few users, therefore you may want to limit the effort you spend on these
> four
> platforms.
>

I was thinking of just making the dladdr option a catch-all, i.e. if
there's no other implementation available for the current system, and it
has dlopen, then use the dladdr-based code. Better poor performance than no
functionality, was my thinking, and it would be gated behind
ENABLE_COSTLY_RELOCATABLE, so the developer using it wouldn't get an
unexpected performance hit.

-- 
Web: rrt.sc3d.org

Reply via email to