跳到主要内容

ELF

ELF

  • ELF Header
  • Program Header Table
  • Section Header Table

Type

  • Relocatable File
  • Shared Object File
  • Executable File
  • Coredump

Sections

SectionDescription
.text代码
.rodata常量
.bss未初始化的变量
.data初始化的变量
.got.plt
.got(Global Offset Table)保存所有外部符号的地址信息
.plt(Procedure Linkage Table)代码,调用链接器来解析某个外部函数的地址, 并填充到.got.plt中, 然后跳转到该函数
.plt.got
symtab/strtab调试时使用,strip会删除该符号表
dnssym/dynstr

PLT(Procedure Linkage Table)/GOT(Global Offset Table)

Symbol Table

  • .symtab/.strtab(strip)
  • .dynsym/.dynstr

References