开发者

Finding dependencies of a compiled library on Unix

Is there a way to find names of libraries that a given library depends on?

Basically I have an ".so" file that I load dynamically, and I know all the other .so 开发者_开发知识库files that it's going to try to load

Update 07/07: I found /proc//maps pretty useful, it gives locations of loaded dynamic libraries for a given process


Type readelf -a <PATH-TO-LIBRARY> | grep 'NEEDED' in your terminal.

Note: readelf is part of binutils.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜