有时候需要查看so文件,
linux下直接readelf -a xxx.so 显示elf格式的信息,通过参数来控制显示特定信息
readelf -d filename.so 查看共享库的以来库 和搜索名字
readelf -h filename.so 显示elf头信息
[php]
rainysia@root:/usr/lib/php5/20090626# readelf -a odbc.so | more
elf header:
magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
class: elf64
data: 2's complement, little endian
version: 1 (current)
os/abi: unix - system v
abi version: 0
type: dyn (shared object file)
machine: advanced micro devices x86-64
version: 0x1
entry point address: 0x4940
start of program headers: 64 (bytes into file)
start of section headers: 65976 (bytes into file)
flags: 0x0
size of this header: 64 (bytes)
size of program headers: 56 (bytes)
number of program headers: 7
size of section headers: 64 (bytes)
number of section headers: 27
section header string table index: 26
section headers:
[nr] name type address offset
http://www.bkjia.com/phpjc/477739.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/477739.htmltecharticle有时候需要查看so文件, linux下直接readelf -a xxx.so 显示elf格式的信息,通过参数来控制显示特定信息 readelf -d filename.so 查看共享库的以来库 和搜...