RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MachO::MachOFormat::SegmentCommand Class Reference
Inheritance diagram for MachO::MachOFormat::SegmentCommand:
MachO::MachOFormat::LoadCommand

Public Member Functions

void ReadFile (Linker::Reader &rd) override
 
void WriteFile (Linker::Writer &wr) const override
 
void Read (Linker::Reader &rd, offset_t size) override
 
void Write (Linker::Writer &wr) const override
 
offset_t GetSize () const override
 
- Public Member Functions inherited from MachO::MachOFormat::LoadCommand
 LoadCommand (command_type command)
 

Public Attributes

std::string name
 
uint64_t address = 0
 
uint64_t memory_size = 0
 
uint64_t offset = 0
 
uint64_t file_size = 0
 
uint32_t max_protection = 0
 
uint32_t init_protection = 0
 
uint32_t flags
 
std::vector< Sectionsections
 
- Public Attributes inherited from MachO::MachOFormat::LoadCommand
command_type command
 

Additional Inherited Members

- Public Types inherited from MachO::MachOFormat::LoadCommand
enum  command_type : uint32_t {
  REQ_DYLD = 0x80000000 , SEGMENT = 1 , SYMTAB = 2 , SYMSEG = 3 ,
  THREAD = 4 , UNIXTHREAD = 5 , LOADFVMLIB = 6 , IDFVMLIB = 7 ,
  IDENT = 8 , FVMFILE = 9 , PREPAGE = 10 , DYNSYMTAB = 11 ,
  LOAD_DYLIB = 12 , ID_DYLIB = 13 , LOAD_DYLINKER = 14 , ID_DYLINKER = 15 ,
  PREBOUND_DYLIB = 16 , ROUTINES = 17 , SUB_FRAMEWORK = 18 , SUB_UMBRELLA = 19 ,
  SUB_CLIENT = 20 , SUB_LIBRARY = 21 , TWOLEVEL_HINTS = 22 , PREBIND_CKSUM = 23 ,
  _LOAD_WEAK_DYLIB = 24 , SEGMENT_64 = 25 , ROUTINES_64 = 26 , UUID = 27 ,
  _RPATH = 28 , CODE_SIGNATURE = 29 , SEGMENT_SPLIT_INFO = 30 , _REEXPORT_DYLIB = 31 ,
  LAZY_LOAD_DYLIB = 32 , ENCRYPTION_INFO = 33 , DYLD_INFO = 34 , _LOAD_UPWARD_DYLIB = 35 ,
  VERSION_MIN_MACOSX = 36 , VERSION_MIN_IPHONEOS = 37 , FUNCTION_STARTS = 38 , DYLD_ENVIRONMENT = 39 ,
  _MAIN = 40 , DATA_IN_CODE = 41 , SOURCE_VERSION = 42 , DYLIB_CODE_SIGN_DRS = 43 ,
  ENCRYPTION_INFO_64 = 44 , LINKER_OPTION = 45 , LINKER_OPTIMIZATION_HINT = 46 , VERSION_MIN_TVOS = 47 ,
  VERSION_MIN_WATCHOS = 48 , NOTE = 49 , BUILD_VERSION = 50 , _DYLD_EXPORTS_TRIE = 51 ,
  _DYLD_CHAINED_FIXUPS = 52 , _FILESET_ENTRY = 53 , LOAD_WEAK_DYLIB = _LOAD_WEAK_DYLIB | REQ_DYLD , RPATH = _RPATH | REQ_DYLD ,
  REEXPORT_DYLIB = _REEXPORT_DYLIB | REQ_DYLD , DYLD_INFO_ONLY = DYLD_INFO | REQ_DYLD , LOAD_UPWARD_DYLIB = _LOAD_UPWARD_DYLIB | REQ_DYLD , MAIN = _MAIN | REQ_DYLD ,
  DYLD_EXPORTS_TRIE = _DYLD_EXPORTS_TRIE | REQ_DYLD , DYLD_CHAINED_FIXUPS = _DYLD_CHAINED_FIXUPS | REQ_DYLD , FILESET_ENTRY = _FILESET_ENTRY | REQ_DYLD
}
 
- Static Public Member Functions inherited from MachO::MachOFormat::LoadCommand
static std::unique_ptr< LoadCommandRead (Linker::Reader &rd)
 

Member Function Documentation

◆ GetSize()

offset_t MachOFormat::SegmentCommand::GetSize ( ) const
overridevirtual

◆ Read()

void MachOFormat::SegmentCommand::Read ( Linker::Reader & rd,
offset_t size )
overridevirtual

◆ ReadFile()

void MachOFormat::SegmentCommand::ReadFile ( Linker::Reader & rd)
overridevirtual

Reimplemented from MachO::MachOFormat::LoadCommand.

◆ Write()

void MachOFormat::SegmentCommand::Write ( Linker::Writer & wr) const
overridevirtual

Reimplemented from MachO::MachOFormat::LoadCommand.

◆ WriteFile()

void MachOFormat::SegmentCommand::WriteFile ( Linker::Writer & wr) const
overridevirtual

Reimplemented from MachO::MachOFormat::LoadCommand.


The documentation for this class was generated from the following files: