LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LIEF::MachO::DyldChainedFixups::chained_starts_in_segment Struct Reference

Structure that mirrors the raw dyld_chained_starts_in_segment which aims at providing information about the chained rebase/bind fixups. More...

#include <DyldChainedFixups.hpp>

Collaboration diagram for LIEF::MachO::DyldChainedFixups::chained_starts_in_segment:
Collaboration graph
[legend]

Public Member Functions

size_t page_count () const
 How many pages are in the page_start array.
 

Public Attributes

uint32_t offset = 0
 Original offset of the structure, relative to DyldChainedFixups::starts_offset.
 
uint32_t size = 0
 sizeof(size) + sizeof(page_size) + ... + sizeof(pointer_format)
 
uint16_t page_size = 0
 Likely 0x1000 for x86/x86_64 architectures and 0x4000 for ARM64 architecture.
 
uint64_t segment_offset = 0
 Offset of the segment's data from the beginning of the file (it should match SegmentCommand::file_offset)
 
uint32_t max_valid_pointer = 0
 for 32-bit OS, any value beyond this is not a pointer
 
DYLD_CHAINED_PTR_FORMAT pointer_format
 How pointers are encoded.
 
std::vector< uint16_t > page_start
 Offset in the SegmentCommand of the first element of the chain.
 
std::vector< uint16_t > chain_starts
 Currently not supported.
 
SegmentCommandsegment
 Segment in which the rebase/bind fixups take place.
 

Detailed Description

Structure that mirrors the raw dyld_chained_starts_in_segment which aims at providing information about the chained rebase/bind fixups.

The relocations provided by this structure can be accessed through SegmentCommand::relocations


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