
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


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

被折叠的 条评论
为什么被折叠?



