ldd
查看一个文件的依赖文件。
命令LD_DEBUG
LD_DEBUG 是 glibc 中的 loader 设置的一个环境变量,可以方便的看到 loader 的加载过程。glibc是gnu 发布的libc库 ,即c运行库 。glibc是linux系统 中最底层的api ,几乎其它任何运行库都会依赖于glibc。
# LD_DEBUG=help ls
Valid options for the LD_DEBUG environment variable are:
libs display library search paths
reloc display relocation processing
files display progress for input file
symbols display symbol table processing
bindings display information about symbol binding
versions display version dependencies
all all previous options combined
statistics display relocation statistics
unused determined unused DSOs
help display this help message and exit