查看so文件是32位还是64位
$ file libssl.so.2
libssl.so.2: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[md5/uuid]=cd3a7b5a71bec96c13b9d707836eba0d, not stripped
显示依赖的其他库文件
$ readelf -d libssl.so.2 | grep NEEDED
0x00000001 (NEEDED) Shared library: [libcrypto.so.2]
0x00000001 (NEEDED) Shared library: [libc.so.4]
显示arch信息
$ readelf -A libssl.so.2
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "7-A"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-2
Tag_FP_arch: VFPv3
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_enum_size: int
Tag_ABI_VFP_args: VFP registers
Tag_CPU_unaligned_access: v6
查看 .so 导出函数列表
$ objdump -tT libssl.so.2
or
$ nm -D libssl.so.2