5#include "../linker/linker.h"
6#include "../linker/module.h"
7#include "../linker/segment.h"
8#include "../linker/writer.h"
26 std::shared_ptr<Linker::Writable>
image =
nullptr;
28 void Clear()
override;
40 ~GenericBinaryFormat()
59 using LinkerManager::SetLinkScript;
61 void SetOptions(std::map<std::string, std::string>& options)
override;
63 void OnNewSegment(std::shared_ptr<Linker::Segment> segment)
override;
65 void CreateDefaultSegments();
67 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 =
"")
133 unsigned FormatAdditionalSectionFlags(std::string section_name)
const override;
152 using LinkerManager::SetLinkScript;
154 void SetModel(std::string model)
override;
156 std::unique_ptr<Script::List> GetScript(
Linker::Module& module)
override;
A class to control the output of a file analysis.
Definition dumper.h:550
A helper class to collect sections into segments.
Definition linker.h:19
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 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, encapsulating functionality needed to export binary data.
Definition writer.h:15