RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Apple::PEFHeaderBase Class Reference

Represents the common parts of a PEF container and the 'rseg'0 resource in a CFM-68K binary. More...

#include <pefexe.h>

Public Types

enum  cpu_type { M68K = 0x6D36386B , PPC = 0x70777063 }
 
enum  binary_type { UnknownBinary = -1 , ImportLibrary = 0 , Application = 1 , UnflattenedLibrary = 0x100 }
 

Public Member Functions

 PEFHeaderBase (binary_type type=UnknownBinary, cpu_type architecture=PPC)
 
 PEFHeaderBase (const PEFHeaderBase &)=default
 
void ReadBaseFields (const std::shared_ptr< Linker::Reader > &rd)
 
void WriteBaseFields (const std::shared_ptr< Linker::Writer > &wr) const
 
void AddBaseFields (Dumper::Region &header_region) const
 

Public Attributes

cpu_type architecture
 
uint32_t format_version = 1
 
::Timestamp< Macintosh_clock > date_time_stamp = { }
 
uint32_t old_def_version = 0
 
uint32_t old_imp_version = 0
 
uint32_t current_version = 0
 
uint16_t section_count = 0
 
uint16_t inst_section_count = 0
 
uint32_t memory_address = 0
 
uint32_t exported_symbol_count = 0
 
uint16_t secondary_resource_id = 0
 
uint16_t last_valid_code_resource = 0
 
uint32_t below_a5_size = 0
 
binary_type type
 Specifies the generated or parsed binary type.
 

Detailed Description

Represents the common parts of a PEF container and the 'rseg'0 resource in a CFM-68K binary.

When generating 'rseg' resources, this structure will be shared between PEFFormat and PEFHeader

Member Enumeration Documentation

◆ binary_type

Enumerator
UnknownBinary 

File type to generate not specified.

ImportLibrary 

A shared library.

Application 

An application.

UnflattenedLibrary 

A shared library in an intermediate, unflattened format.


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