On Thu, Jul 7, 2016 at 9:56 AM, Tinker <[email protected]> wrote:
> Is there any way to retrieve a listing of the shared libraries loaded by a
> running process?
>
> Both from external and via code in the process is fine.

<link_elf.h> has dl_iterate_phdr() for use in the process.

gdb can some how get this information from a running process via the
link_map structures that ld.so has, but I don't know the details of
how it gets to that using ptrace().  The source is over there in
/usr/src/gnu/usr.bin/binutils/gdb/; good luck!


Philip Guenther

Reply via email to