This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
dlinfo for the calling shared library
- From: Zack Weinberg <zackw at panix dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 10 Jul 2019 09:06:53 -0400
- Subject: dlinfo for the calling shared library
Do we have a supported way to make dlinfo() queries for the shared
library from which the call originates, without the library having to
know its own soname? (If it knows its own soname, it can call dlopen
on itself, but I'm looking into a scenario where that information is
not available.)
A library can retrieve its own "base address" using dladdr(), but it
is not clear to me whether that is the same thing as the handle
expected by dlsym and dlinfo.
zw