本博客地址:https://security.blog.youkuaiyun.com/article/details/82925895
一、so文件格式解析
1.1、ELF文件格式
Android中的so文件就是ELF文件,了解so文件首先需要了解ELF文件的格式,使用工具为readelf,常用命令如下:
1、查看so文件的头部信息
readelf -h xxx.so //如:libhello.so等
2、查看so文件的节(Section)头的信息
readelf -S xxx.so //如:libhello.so等
3、查看so文件的程序段头信息(Program)
readelf -l xxx.so //如:libhello.so等
4、查看so文件的全部内容
readelf -a xxx.so //如:libhello.so等