elf文件格式_程序编译,链接,装载和elf文件格式

ELF文件格式详解
ELF文件是可执行和链接格式,包含程序头表和节头表,用于描述运行时的内存段和二进制的各个部分。这些段提供运行时所需的资料,而节则包含链接和重定位的重要数据。每个字节最多属于一个节,孤儿字节可能不属于任何节。

bc952ca0da21850a67879f8ee338f041.png
https://en.wikipedia.org/wiki/Executable_and_Linkable_Format

An ELF file has two views: the program header shows thesegmentsused at run time, whereas the section header lists the set ofsectionsof the binary.

Each ELF file is made up of one ELF header, followed by file data. The data can include:

  • Program header table, describing zero or more memory segments
  • Section header table, describing zero or more sections
  • Data referred to by entries in the program header table or section header table

The segments contain information that is needed for run time execution of the file, while sections contain important data for linking and relocation. Any byte in the entire file can be owned by one section at most, and orphan bytes can occur which are unowned by any section.

Executable and Linkable Format

c3b9341b084f5aa662aa263d4a8f69f7.png

a4e3f0feaaf4f5df8bce501c58532d77.png
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值