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

A standard 28 byte a.out optional header, used by DJGPP. More...

#include <coff.h>

Inheritance diagram for COFF::COFFFormat::AOutHeader:
COFF::COFFFormat::OptionalHeader COFF::COFFFormat::FlexOSAOutHeader COFF::COFFFormat::MIPSAOutHeader

Public Member Functions

 AOutHeader (uint16_t magic=0)
 
uint32_t GetSize () override
 Returns size of optional header.
 
void ReadFile (Linker::Reader &rd) override
 
void WriteFile (Linker::Writer &wr) override
 
void Dump (COFFFormat &coff, Dumper::Dumper &dump) override
 
- Public Member Functions inherited from COFF::COFFFormat::OptionalHeader
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 (COFFFormat &coff, Linker::Writer &wr)
 Stores any additional data in the file corresponding to this type of optional header.
 

Public Attributes

uint16_t magic = 0
 Type of executable, most typically ZMAGIC (COFF name: magic)
 
uint16_t version_stamp = 0
 unused (COFF name: vstamp)
 
uint32_t code_size = 0
 unused (COFF name: tsize)
 
uint32_t data_size = 0
 unused (COFF name: dsize)
 
uint32_t bss_size = 0
 unused (COFF name: bsize)
 
uint32_t entry_address = 0
 Initial value of eip (COFF name: entry)
 
uint32_t code_address = 0
 unused (COFF name: text_start)
 
uint32_t data_address = 0
 unused (COFF name: data_start)
 

Protected Member Functions

virtual void DumpFields (COFFFormat &coff, Dumper::Dumper &dump, Dumper::Region &header_region)
 

Detailed Description

A standard 28 byte a.out optional header, used by DJGPP.

Member Function Documentation

◆ Dump()

void COFFFormat::AOutHeader::Dump ( COFFFormat & coff,
Dumper::Dumper & dump )
overridevirtual

Reimplemented from COFF::COFFFormat::OptionalHeader.

◆ GetSize()

uint32_t COFFFormat::AOutHeader::GetSize ( )
overridevirtual

Returns size of optional header.

Implements COFF::COFFFormat::OptionalHeader.

Reimplemented in COFF::COFFFormat::FlexOSAOutHeader.

◆ ReadFile()

void COFFFormat::AOutHeader::ReadFile ( Linker::Reader & rd)
overridevirtual

◆ WriteFile()

void COFFFormat::AOutHeader::WriteFile ( Linker::Writer & wr)
overridevirtual

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