|
| enum | comment_class_t : uint8_t {
Translator = 0x00
, IntelCopyright = 0x01
, LibrarySpecifier = 0x81
, MSDOSVersion = 0x9C
,
MemoryModel = 0x9D
, DOSSEG = 0x9E
, DefaultLibrarySearchName = 0x9F
, OMFExtension = 0xA0
,
NewOMFExtension = 0xA1
, LinkPassSeparator = 0xA2
, LIBMOD = 0xA3
, EXESTR = 0xA4
,
INCERR = 0xA6
, NOPAD = 0xA7
, WKEXT = 0xA8
, LZEXT = 0xA9
,
Comment = 0xDA
, Compiler = 0xDB
, Date = 0xDC
, TimeStamp = 0xDD
,
User = 0xDF
, DependencyFile = 0xE9
, CommandLine = 0xFF
} |
| |
|
|
| CommentRecord (comment_class_t comment_class=comment_class_t(0)) |
| |
|
virtual void | ReadComment (OMF86Format *omf, Module *mod, Linker::Reader &rd, uint16_t comment_length)=0 |
| |
|
virtual uint16_t | GetCommentSize (OMF86Format *omf, Module *mod) const =0 |
| |
|
virtual void | WriteComment (OMF86Format *omf, Module *mod, ChecksumWriter &wr) const =0 |
| |
|
void | ReadRecordContents (OMF86Format *omf, Module *mod, Linker::Reader &rd) override |
| |
|
uint16_t | GetRecordSize (OMF86Format *omf, Module *mod) const override |
| |
|
void | WriteRecordContents (OMF86Format *omf, Module *mod, ChecksumWriter &wr) const override |
| |
|
| Record (RecordTypeByte record_type=RecordTypeByte(0)) |
| |
|
offset_t | RecordEnd () const |
| |
| virtual void | ReadRecordContents (FormatType *omf, ModuleType *mod, Linker::Reader &rd)=0 |
| | Reads the record contents, except for the type, length and checksum.
|
| |
| virtual uint16_t | GetRecordSize (FormatType *omf, ModuleType *mod) const =0 |
| | Calculates the required bytes to write the record, might be less than record_length.
|
| |
| virtual void | WriteRecordContents (FormatType *omf, ModuleType *mod, ChecksumWriter &wr) const =0 |
| | Writes the record contents, except for the type, length and checksum.
|
| |
|
virtual void | WriteRecord (FormatType *omf, ModuleType *mod, Linker::Writer &wr) const |
| | Writes the full record.
|
| |
|
virtual void | CalculateValues (FormatType *omf, ModuleType *mod) |
| | Updates all fields that will be used for writing an OMF module, should be called before output.
|
| |
|
virtual void | ResolveReferences (FormatType *omf, ModuleType *mod) |
| | Resolves any fields read from an OMF module, should be called after inpnut.
|
| |
|
virtual void | DumpAddFields (Dumper::Dumper &dump, Dumper::Region ®ion, const FormatType *omf, const ModuleType *mod, size_t record_index) const |
| |
|
virtual void | Dump (Dumper::Dumper &dump, const FormatType *omf, const ModuleType *mod, size_t record_index) const |
| |
|
bool | Is32Bit (FormatType *omf) const |
| | Records are 32-bit if the least significant bit of their record type is set (only meaningful for OMF86Format)
|
| |
|
size_t | GetOffsetSize (FormatType *omf) const |
| | The number of bytes in an offset appearing inside the record, 2 for 16-bit records, 4 for 32-bit records (only meaningful for OMF86Format)
|
| |