Hi,

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.

The point is that due to dhload(), it could maybe be easy to miss some library. Anyhow if there's no way then "ldd" should be fine.


(
I know what *NOT* works:

 * "ldd" does NOT take a PID argument, and

 * "LD_DEBUG" and "LD_TRACE_LOADED_OBJECTS" of ld.so
(http://man.openbsd.org/ld.so.1 / http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/libexec/ld.so/ ) either output too much - tons of debug - or output the right thing but then terminate the process.

Maybe some more mode than just on/off is in the code for LD_DEBUG but I don't think so.
)

Thanks,
Tinker

Reply via email to