你的位置:首页 > 软件开发 > 操作系统 > ELF Format 笔记(四)—— 节(Section)

ELF Format 笔记(四)—— 节(Section)

发布时间:2015-06-23 00:00:11
ELF 文件可以包含很多 section,所有的 section 都在 section header table 中有对应的一项,每个 section header 都是一个 Elf32_Shdr 结构,用于描述相应 section 的信息。ELF Header 中的 e_sho ...

ELF Format 笔记(四)—— 节(Section)

ELF 文件可以包含很多 section,所有的 section 都在 section header table 中有对应的一项,每个 section header 都是一个 Elf32_Shdr 结构,用于描述相应 section 的信息。

ELF Header 中的 e_shoff 给出了 section header table 在 ELF 文件中的字节偏移量,e_shentsize 指明在 section header table 中的每一项的字节大小,e_shnum 指明共有多少项。

Elf32_Shdr 结构:

 1 typedef struct { 2   Elf32_Word sh_name; 3   Elf32_Word sh_type; 4   Elf32_Word sh_flags; 5   Elf32_Addr sh_addr; 6   Elf32_Off sh_offset; 7   Elf32_Word sh_size; 8   Elf32_Word sh_link; 9   Elf32_Word sh_info;10   Elf32_Word sh_addralign;11   Elf32_Word sh_entsize;12 } Elf32_Shdr;

原标题:ELF Format 笔记(四)—— 节(Section)

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录