最終更新:2019-10-06 (日) 12:09:08 (1625d)
ELF/プログラムヘッダテーブル
Program segment header
構造体
Elf64_Phdr
typedef struct { Elf64_Word p_type; /* Segment type */ Elf64_Word p_flags; /* Segment flags */ Elf64_Off p_offset; /* Segment file offset */ Elf64_Addr p_vaddr; /* Segment virtual address */ Elf64_Addr p_paddr; /* Segment physical address */ Elf64_Xword p_filesz; /* Segment size in file */ Elf64_Xword p_memsz; /* Segment size in memory */ Elf64_Xword p_align; /* Segment alignment */ } Elf64_Phdr; }
メモ
- e_phentsize に e_phnum を掛けると、テーブルのサイズ (単位 : バイト) が求められます。
ELF/セグメント?の配置情報
- readelf -l : Display the program headers