ROSE 0.11.145.147
Public Attributes | List of all members
SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk Struct Reference

Description

File format of an ELF Segment header.

Byte order of members depends on e_ident value in file header. This code comes directly from "Executable and Linkable Format (ELF)", Portable Formats Specification, Version 1.1, Tool Interface Standards (TIS) and not from any header file. The 64-bit structure is gleaned from the Linux elf(5) man page. Segment table entries (a.k.a., ELF program headers) either describe process segments or give supplementary info which does not contribute to the process image.

Definition at line 19851 of file binaryInstruction.C.

Public Attributes

uint32_t p_type
 0x00 kind of segment
 
uint32_t p_offset
 0x04 file offset
 
uint32_t p_vaddr
 0x08 desired mapped address of segment
 
uint32_t p_paddr
 0x0c physical address where supported (unused by System V)
 
uint32_t p_filesz
 0x20 bytes in file (may be zero or other value smaller than p_memsz)
 
uint32_t p_memsz
 0x24 number of bytes when mapped (may be zero)
 
uint32_t p_flags
 0x28
 
uint32_t p_align
 0x2c alignment for file and memory (0,1=>none); power of two
 

Member Data Documentation

◆ p_type

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_type

0x00 kind of segment

Definition at line 19852 of file binaryInstruction.C.

◆ p_offset

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_offset

0x04 file offset

Definition at line 19853 of file binaryInstruction.C.

◆ p_vaddr

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_vaddr

0x08 desired mapped address of segment

Definition at line 19854 of file binaryInstruction.C.

◆ p_paddr

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_paddr

0x0c physical address where supported (unused by System V)

Definition at line 19855 of file binaryInstruction.C.

◆ p_filesz

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_filesz

0x20 bytes in file (may be zero or other value smaller than p_memsz)

Definition at line 19856 of file binaryInstruction.C.

◆ p_memsz

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_memsz

0x24 number of bytes when mapped (may be zero)

Definition at line 19857 of file binaryInstruction.C.

◆ p_flags

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_flags

0x28

Definition at line 19858 of file binaryInstruction.C.

◆ p_align

uint32_t SgAsmElfSegmentTableEntry::Elf32SegmentTableEntry_disk::p_align

0x2c alignment for file and memory (0,1=>none); power of two

Definition at line 19859 of file binaryInstruction.C.


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