2. ELF Structures
What is an ELF file?
Breakdown of the ELF file
───────────────────────────────────────────────────────────────────
00000000: 7f45 4c46 0201 0100 0000 0000 0000 0000 .ELF............ ─┐
00000010: 0200 3e00 0100 0000 0000 0000 0000 0000 ..>............. │── ELF Header
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ ─┘
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
00000040: 0100 0000 0000 0000 4000 0000 0000 0000 ........@....... ─┐
00000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │─ Program Header Table (PHT)
00000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
00000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................ ─┘
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
00000080: 0100 0000 0000 0000 0000 0000 0000 0000 ................ ─┐
00000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
000000A0: 2e74 6578 7400 0000 1200 0000 0100 0000 .text........... │────── Sections
000000B0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
000000C0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
000000D0: 2e64 6174 6100 0000 1200 0000 0000 0000 .data.......... ─┘
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
000000E0: 0300 0000 0000 0000 2e73 796d 7461 6200 .........symtab. ─┐
000000F0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │── Symbol Table
00000100: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
00000110: 0000 0000 0000 0000 0000 0000 0000 0000 ................ ─┘
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
00000120: 0300 0000 0000 0000 2e73 7472 7461 6200 .........strtab. ─┐
00000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │── String Table
00000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
00000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................ ─┘
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
00000160: 0400 0000 0000 0000 2e72 656c 6f63 2e64 .........reloc.d ─┐
00000170: 6174 6100 0000 0000 0000 0000 0000 0000 ata.............. │── Relocation Section
00000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │
00000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................ ─┘
───────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────
000001A0: 0500 0000 0000 0000 2e6e 6f74 6500 0000 .........note... ─┐
000001B0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ │── Note Section
000001C0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ ─┘
───────────────────────────────────────────────────────────────────Bytes
Description
ELF sections
ELF file tables
Last updated