Determining a program's shared libraries at runtime

Igor Pokrovsky tiamat at comset.net
Wed Mar 31 18:55:48 PST 2004


On Wed, Mar 31, 2004 at 02:55:47PM -0500, Mike Heffner wrote:
> 
> Is there a method in FreeBSD for a program to retrieve the current list of
> dynamic shared libraries it is linked against or has dlopen()'d?

Looks like ldd is doing exactly what you want, take a look at it's sources.

-ip

-- 
It's always darkest just before the lights go out.


More information about the freebsd-hackers mailing list