program headers (ELF)

0001-01-01

ELF program headers are structures within ELF files that describe segments (sections of the file that are loaded into memory when executed).

Elf program headers include:

  • Type: LOAD, DYNAMIC, INTERP
  • offset: position of the segment within the ELF file
  • virtual address: the address where the segment should be loaded in memory
  • file size
  • memory size
  • flags
  • alignment: how the segment should be aligned in memory