PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
Elf64_Phdr Struct Reference

ELF64 Program Header. More...

#include <elf.h>

Collaboration diagram for Elf64_Phdr:

Data Fields

Elf64_Word p_type
 Segment type.
 
Elf64_Word p_flags
 Segment flags.
 
Elf64_Off p_offset
 Segment file offset in bytes.
 
Elf64_Addr p_vaddr
 Target virtual address in memory.
 
Elf64_Addr p_paddr
 Target physical address, ignored on systems without physical addressing.
 
Elf64_Xword p_filesz
 Size of segment in file in bytes.
 
Elf64_Xword p_memsz
 Size of segment in memory in bytes.
 
Elf64_Xword p_align
 Segment alignment requirement.
 

Detailed Description

ELF64 Program Header.

Stored in the program header table, which is located at the file offset e_phoff and contains e_phnum entries where each entry is e_phentsize bytes long.

Each program header describes a segment in the ELF file, which is used during program loading.

See also
https://gabi.xinuos.com/elf/07-pheader.html

Definition at line 729 of file elf.h.

Field Documentation

◆ p_type

Elf64_Word Elf64_Phdr::p_type

Segment type.

Definition at line 731 of file elf.h.

◆ p_flags

Elf64_Word Elf64_Phdr::p_flags

Segment flags.

Definition at line 732 of file elf.h.

◆ p_offset

Elf64_Off Elf64_Phdr::p_offset

Segment file offset in bytes.

Definition at line 733 of file elf.h.

◆ p_vaddr

Elf64_Addr Elf64_Phdr::p_vaddr

Target virtual address in memory.

Definition at line 734 of file elf.h.

◆ p_paddr

Elf64_Addr Elf64_Phdr::p_paddr

Target physical address, ignored on systems without physical addressing.

Definition at line 735 of file elf.h.

◆ p_filesz

Elf64_Xword Elf64_Phdr::p_filesz

Size of segment in file in bytes.

Definition at line 736 of file elf.h.

◆ p_memsz

Elf64_Xword Elf64_Phdr::p_memsz

Size of segment in memory in bytes.

Definition at line 737 of file elf.h.

◆ p_align

Elf64_Xword Elf64_Phdr::p_align

Segment alignment requirement.

Definition at line 738 of file elf.h.


The documentation for this struct was generated from the following file: