免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 573 | 回复: 0
打印 上一主题 下一主题

ELF Executable and Linkable Format [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-01 10:56 |只看该作者 |倒序浏览
elf有两种格式,一种是从link角度看,一种是从execution角度看。

link view
elf header
Program header table (optional)
section 1
...
section n
...
section header table

execution view
elf header
Program header table
segment 1
segment 2
...
section header table (optional)
elf header 中放的是关于整个elf的一些基本的信息。
elf header 分析
section header table 中存放的自然是有关section的信息,比如sectoin的类型等。
section header table 分析
以及几个特别的section 的分析
symbol table 分析
program header table 中存放的是在link时使用的一些信息。
其中section header tabel & program header table 都是一些结构体(structure)的数组,每个structure中存放着该structure的各种信息。section $ segment 是elf文件中具体的存放信息的地方,根据作用属性不同而有不同。
参考资料
1.《Executable and Linkable Format(FLE)》
2./usr/include/elf.h


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29336/showart_224733.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP