linux编译工具使用说明

nm
ldconfig
ld
ldd
readelf
strings
strip
ar
as
ranlib
objdump

1.readelf:

查看程序执行时所依赖的库有哪些

mipsel-linux-readelf  -d microprint

Dynamic section at offset 0x120 contains 39 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libjson-c.so.2]
 0x00000001 (NEEDED)                     Shared library: [libcurl.so.4]
 0x00000001 (NEEDED)                     Shared library: [libssl.so.1.0.0]
 0x00000001 (NEEDED)                     Shared library: [libcrypto.so.1.0.0]

2.strip

去掉调试信息

mipsel-linux-strip microprint

3.strings

 

ld

 

4.ldd

ldd命令查看可执行程序的链接库

 

lddconfig

 

5.nm

6.ar,as

7.randlib

objdump

 

 

你可能感兴趣的:(linux编译工具使用说明)