ELF: Executable and Linkable Format,可执行与可链接格式
也即是说,ELF是一种文件格式,它是由USL作为应用程序二进制接口(ABI, Application Binary Interface)而开发和发布的,后来被x86架构选中,用作x86架构上的二进制文件标准格式。
ELF文件组成
ELF Header + Program Header Table + Section + Section Header Table
ELF定义解析
1、公用基础数据结构
/* Type for a 16-bit quantity. */
typedef uint16_t Elf64_Half;
/* Types for signed and unsigned 32-bit quantities. */
typedef uint32_t Elf64_Word;
typedef int32_t Elf64_Sword;