|
RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
Public Member Functions | |
| CodeResource (uint16_t id, std::shared_ptr< JumpTableCodeResource > jump_table=nullptr) | |
| void | CalculateValues () override |
| offset_t | ImageSize () const override |
| Retrieves size of stored data. | |
| void | ReadFile (Linker::Reader &rd) override |
| Loads file into memory. | |
| void | ReadFile (Linker::Reader &rd, offset_t length) override |
| uint32_t | MeasureRelocations (std::set< uint32_t > &relocations) const |
| void | ReadRelocations (Linker::Reader &rd, std::set< uint32_t > &relocations) const |
| void | WriteRelocations (Linker::Writer &wr, const std::set< uint32_t > &relocations) const |
| offset_t | WriteFile (Linker::Writer &wr) const override |
| Stores data in memory to file. | |
| int | GetDisplayOptions () const override |
| void | Dump (Dumper::Dumper &dump, offset_t file_offset) const override |
| void | AddFields (Dumper::Dumper &dump, Dumper::Region ®ion, offset_t file_offset) const override |
| std::unique_ptr< Dumper::Region > | CreateRegion (std::string name, offset_t offset, offset_t length, unsigned display_width) const override |
Public Member Functions inherited from Apple::MacintoshResourceFileFormat::Resource | |
| void | Dump (Dumper::Dumper &dump) const override |
| Display file contents in a nice manner. | |
Public Member Functions inherited from Linker::Format | |
| Format (offset_t file_offset=0) | |
| virtual void | Clear () |
| Resets all fields to their default values, deallocate memory. | |
| offset_t | WriteFile (Writer &wr, offset_t count, offset_t offset=0) const override |
| Writes data of non-zero filled sections. | |
Public Member Functions inherited from Linker::Contents | |
| virtual std::shared_ptr< const Image > | AsImage () const |
| Retrieves a randomly accessible image. | |
| std::shared_ptr< Image > | AsImage () |
| Retrieves a randomly accessible image. | |
Public Attributes | |
| std::shared_ptr< JumpTableCodeResource > | jump_table |
| std::shared_ptr< Linker::Contents > | image |
| uint32_t | zero_fill = 0 |
| bool | is_far = false |
| uint32_t | a5_address = 0 |
| uint32_t | base_address = 0 |
| std::set< uint16_t > | near_entries |
| uint16_t | near_entry_count = 0 |
| std::set< uint32_t > | far_entries |
| uint16_t | far_entry_count = 0 |
| std::set< uint32_t > | a5_relocations |
| std::set< uint32_t > | segment_relocations |
| uint32_t | first_near_entry_offset |
| uint32_t | first_far_entry_offset |
| uint32_t | a5_relocation_offset |
| uint32_t | segment_relocation_offset |
| uint32_t | resource_size |
Public Attributes inherited from Apple::MacintoshResourceFileFormat::Resource | |
| char | type [4] |
| uint16_t | id |
| std::optional< std::string > | name |
| uint8_t | attributes |
Public Attributes inherited from Linker::Format | |
| offset_t | file_offset |
Static Public Attributes | |
| static constexpr uint32_t | OSType = OSTypeToUInt32('C', 'O', 'D', 'E') |
Additional Inherited Members | |
Protected Member Functions inherited from Apple::MacintoshResourceFileFormat::Resource | |
| Resource (const char type[4], uint16_t id, uint8_t attributes=0) | |
| Resource (const char type[4], uint16_t id, std::string name, uint8_t attributes=0) | |
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Implements Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Reimplemented from Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Retrieves size of stored data.
Implements Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Loads file into memory.
Implements Linker::Format.
|
overridevirtual |
Implements Apple::MacintoshResourceFileFormat::Resource.
|
overridevirtual |
Stores data in memory to file.
Implements Linker::Format.