5#include "../linker/module.h"
6#include "../linker/segment.h"
7#include "../linker/segment_manager.h"
8#include "../linker/writer.h"
26 std::shared_ptr<Linker::Image>
image =
nullptr;
28 void Clear()
override;
40 ~GenericBinaryFormat()
62 void OnNewSegment(std::shared_ptr<Linker::Segment> segment)
override;
64 void CreateDefaultSegments();
66 virtual std::unique_ptr<Script::List> GetScript(
Linker::Module& module);
103 std::unique_ptr<Microsoft::MZFormat::PIF>
pif =
nullptr;
105 void Clear()
override;
107 BinaryFormat(uint64_t default_base_address = 0, std::string default_extension =
"")
136 unsigned FormatAdditionalSectionFlags(std::string section_name)
const override;
155 void SetModel(std::string model)
override;
157 std::unique_ptr<Script::List> GetScript(
Linker::Module& module)
override;
An abstract interface that separates structure and presentation of the data inside a file.
Definition dumper.h:586
Encodes an object module file as a collection of sections, symbols and relocations.
Definition module.h:24
A helper class, encapsulating functionality needed to import binary data.
Definition reader.h:16
A representation of a value within some binary data that has to be fixed up once the exact position o...
Definition relocation.h:27
Representing a resolved relocation.
Definition resolution.h:17
A helper class to collect sections into segments.
Definition segment_manager.h:32
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15