查看可执行文件
[root@lsoiodmuov sbin]# file vsftpd
vsftpd: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=785de1e9afe41ebb0fa8eae8c15b3d828e787905, stripped
查看可执行文件依赖库
[root@lsoiodmuov sbin]# readelf -d vsftpd
Dynamic section at offset 0x276e8 contains 34 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libssl.so.10]
0x0000000000000001 (NEEDED) Shared library: [libwrap.so.0]
0x0000000000000001 (NEEDED) Shared library: [libnsl.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpam.so.0]
0x0000000000000001 (NEEDED) Shared library: [libcap.so.2]
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.10]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x5368
0x000000000000000d (FINI) 0x1ca94
0x0000000000000019 (INIT_ARRAY) 0x2276c8
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0x2276d0
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x298
0x0000000000000005 (STRTAB) 0x1778
0x0000000000000006 (SYMTAB) 0x2d8
0x000000000000000a (STRSZ) 2684 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x227948
0x0000000000000002 (PLTRELSZ) 4896 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x4048
0x0000000000000007 (RELA) 0x24a0
0x0000000000000008 (RELASZ) 7080 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x0000000000000018 (BIND_NOW)
0x000000006ffffffb (FLAGS_1) Flags: NOW PIE
0x000000006ffffffe (VERNEED) 0x23b0
0x000000006fffffff (VERNEEDNUM) 4
0x000000006ffffff0 (VERSYM) 0x21f4
0x000000006ffffff9 (RELACOUNT) 287
0x0000000000000000 (NULL) 0x0
[root@lsoiodmuov sbin]# find / -iname libssl.so.10
/usr/lib64/libssl.so.10
[root@lsoiodmuov sbin]# ll /usr/lib64/libssl.so.10
lrwxrwxrwx 1 root root 16 Jul 22 16:21 /usr/lib64/libssl.so.10 -> libssl.so.1.0.2k
[root@lsoiodmuov sbin]#
[root@lsoiodmuov sbin]# ll -h /usr/lib64/libssl.so.1.0.2k
-rwxr-xr-x 1 root root 460K Mar 28 23:42 /usr/lib64/libssl.so.1.0.2k
标签:可执行文件,依赖,查看,library,NEEDED,Shared,0x0000000000000001,root,libssl
From: https://www.cnblogs.com/marit/p/16645450.html