RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
An abstract class to represent the optional header. More...
#include <coff.h>
Public Member Functions | |
virtual uint32_t | GetSize () const =0 |
Returns size of optional header. | |
virtual void | ReadFile (Linker::Reader &rd)=0 |
virtual void | WriteFile (Linker::Writer &wr) const =0 |
virtual offset_t | CalculateValues (COFFFormat &coff)=0 |
Sets up fields to be consistent. | |
virtual void | PostReadFile (COFFFormat &coff, Linker::Reader &rd) |
Retrieves any additional data from the file corresponding to this type of optional header. | |
virtual void | PostWriteFile (const COFFFormat &coff, Linker::Writer &wr) const |
Stores any additional data in the file corresponding to this type of optional header. | |
virtual void | Dump (const COFFFormat &coff, Dumper::Dumper &dump) const |
An abstract class to represent the optional header.
|
pure virtual |
Sets up fields to be consistent.
Implemented in COFF::COFFFormat::UnknownOptionalHeader, COFF::COFFFormat::AOutHeader, COFF::COFFFormat::FlexOSAOutHeader, COFF::COFFFormat::GNUAOutHeader, COFF::COFFFormat::MIPSAOutHeader, COFF::COFFFormat::ECOFFAOutHeader, and COFF::COFFFormat::XCOFFAOutHeader.
|
pure virtual |
Returns size of optional header.
Implemented in COFF::COFFFormat::UnknownOptionalHeader, COFF::COFFFormat::AOutHeader, COFF::COFFFormat::FlexOSAOutHeader, COFF::COFFFormat::GNUAOutHeader, COFF::COFFFormat::MIPSAOutHeader, COFF::COFFFormat::ECOFFAOutHeader, COFF::COFFFormat::XCOFFAOutHeader, and Microsoft::PEFormat::PEOptionalHeader.
|
virtual |
Retrieves any additional data from the file corresponding to this type of optional header.
Reimplemented in COFF::COFFFormat::FlexOSAOutHeader.
|
virtual |
Stores any additional data in the file corresponding to this type of optional header.
Reimplemented in COFF::COFFFormat::FlexOSAOutHeader.