开发者

Finding dependencies of a compiled library on Unix

开发者 https://www.devze.com 2023-03-16 10:49 出处:网络
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 goi

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

精彩评论

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