有时候我们需要查找可执行程序的依赖的动态库,我们可以使用 readelf ,比如这样》
[root@RV1126_RV1109:/py-spidev]# readelf -d /bin/ls | grep "Shared library"
0x00000001 (NEEDED) Shared library: [librt.so.1]
0x00000001 (NEEDED) Shared library: [libattr.so.1]
0x00000001 (NEEDED) Shared library: [libcrypto.so.1.0.0]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libc.so.6]
[root@RV1126_RV1109:/py-spidev]#
如果使用ldd,可参考 http://blog.csdn.net/csdn66_2016/article/details/78063771