RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
omf.h
1#ifndef OMF_H
2#define OMF_H
3
4#include "../common.h"
5#include "../linker/reader.h"
6#include "../linker/writer.h"
7
8/* TODO: unimplemented */
9
10/* Intel Object Module format (input only) */
11
12namespace OMF
13{
17 class OMFFormat : public virtual Linker::InputFormat
18 {
19 public:
20 void ReadFile(Linker::Reader& in) override;
21 void WriteFile(Linker::Writer& out) override;
22 void ProduceModule(Linker::Module& module, Linker::Reader& rd) override;
23 /* TODO */
24 };
25}
26
27#endif /* OMF_H */
A class that provides a general interface to loading a module.
Definition format.h:161
Encodes an object module file as a collection of sections, symbols and relocations.
Definition module.h:20
A helper class, encapsulating functionality needed to import binary data.
Definition reader.h:16
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15
Intel Relocatable Object Module format, used by various 16/32-bit DOS based compilers and linkers,...
Definition omf.h:18
void ReadFile(Linker::Reader &in) override
Loads file into memory.
Definition omf.cc:8
void ProduceModule(Linker::Module &module, Linker::Reader &rd) override
Reads a file and loads the information into a module object.
Definition omf.cc:18
void WriteFile(Linker::Writer &out) override
Stores data in memory to file.
Definition omf.cc:13