linux 查看依赖库

readelf -d libsurfaceflinger.so

打印出来的数据如下:

Dynamic section at offset 0xb4 contains 37 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [liblog.so]
 0x00000001 (NEEDED)                     Shared library: [libcutils.so]
 0x00000001 (NEEDED)                     Shared library: [libhardware.so]
 0x00000001 (NEEDED)                     Shared library: [libutils.so]
 0x00000001 (NEEDED)                     Shared library: [libEGL.so]
 0x00000001 (NEEDED)                     Shared library: [libGLESv1_CM.so]
 0x00000001 (NEEDED)                     Shared library: [libbinder.so]
 0x00000001 (NEEDED)                     Shared library: [libui.so]
 0x00000001 (NEEDED)                     Shared library: [libgui.so]
 0x00000001 (NEEDED)                     Shared library: [libdvm.so]
 0x00000001 (NEEDED)                     Shared library: [libandroid_runtime.so]
 0x00000001 (NEEDED)                     Shared library: [libandroidpl.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]

 0x0000000e (SONAME)                     Library soname: [libsurfaceflinger.so]
 0x00000019 (INIT_ARRAY)                 0x38000
 0x0000001b (INIT_ARRAYSZ)               12 (bytes)
 0x0000001a (FINI_ARRAY)                 0x3800c
 0x0000001c (FINI_ARRAYSZ)               12 (bytes)
 0x00000004 (HASH)                       0x20c
 0x00000005 (STRTAB)                     0x4f98
 0x00000006 (SYMTAB)                     0x1818
 0x0000000a (STRSZ)                      39440 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0x3b270
 0x00000011 (REL)                        0xe9a8
 0x00000012 (RELSZ)                      17920 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x70000001 (MIPS_RLD_VERSION)           1
 0x70000005 (MIPS_FLAGS)                 NOTPOT
 0x70000006 (MIPS_BASE_ADDRESS)          0
 0x7000000a (MIPS_LOCAL_GOTNO)           16
 0x70000011 (MIPS_SYMTABNO)              888
 0x70000012 (MIPS_UNREFEXTNO)            30
 0x70000013 (MIPS_GOTSYM)                0x49
 0x00000000 (NULL)                       0x0

红色的部分表示依赖库




你可能感兴趣的:(c,linux,null,library)