读取so文件信息工具——readelf
2015-06-04 17:28
246 查看
工具:readelf
常用参数:
-a 显示elf格式的信息
-h 显示elf头信息
举例:
#readelf -a libart.so
#readelf -h libart.so
[root@localhost vwang]# readelf -h libart.so
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: ARM
Version: 0x1
Entry point address: 0x0
Start of program headers: 52 (bytes into file)
Start of section headers: 5670572 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 10
Size of section headers: 40 (bytes)
Number of section headers: 31
Section header string table index: 28
判断so位数:Magic项中第五个字节,01为32位,02为64位。
常用参数:
-a 显示elf格式的信息
-h 显示elf头信息
举例:
#readelf -a libart.so
#readelf -h libart.so
[root@localhost vwang]# readelf -h libart.so
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: ARM
Version: 0x1
Entry point address: 0x0
Start of program headers: 52 (bytes into file)
Start of section headers: 5670572 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 10
Size of section headers: 40 (bytes)
Number of section headers: 31
Section header string table index: 28
判断so位数:Magic项中第五个字节,01为32位,02为64位。
相关文章推荐
- spark总体概况
- android ExpandableListView的group是一个自定义的布局,折叠图标覆盖布局上的部分内容
- 【数字图像处理】六.MFC空间几何变换之图像平移、镜像、旋转、缩放详解
- Maven 手动添加 JAR 包到本地仓库
- JavaMail发送简单邮件
- Android SDK 在线更新镜像服务器资源
- 基于cocos2d-x的2D空间中的OBB(Orient Bounding Box)碰撞检测算法
- SAT小说类文章阅读做题方法
- Uva 1589 Xiangqi
- 登陆界面和界面跳转
- 图文详解YUV420数据格式
- SwiftyJSON 中文介绍
- Max Sum(最大子序和)
- 剑指offer 59 - 对称的二叉树
- Java项目性能监控和调优工具-Javamelody
- 持续集成(第二版)
- Actionbar
- query_posts()的参数使用方法
- IIS中添加MIME类型
- [HDU 1856] More is better