本文主要介绍Linux操作系统中ldd命令的常见用法。
1 概述
引用Manual中对于ldd的描述,内容如下:
ldd - print shared library dependencies
ldd prints the shared libraries required by each program or shared library specified on the command line.
2 语法
ldd的命令格式为:
ldd [option]... file...
3 常见用法
“-r”选项:
-r, --function-relocs:Perform relocations for both data objects and functions, and report any missing objects or functions (ELF only).