8#include "../linker/linker.h"
9#include "../linker/module.h"
10#include "../linker/segment.h"
11#include "../linker/writer.h"
13namespace DigitalResearch
57 std::shared_ptr<Linker::Writable>
image =
nullptr;
61 bool IsPresent()
const;
103 MAGIC_SEGMENTED_OBJECT = 0xEE00,
104 MAGIC_SEGMENTED = 0xEE01,
105 MAGIC_NONSHARED_OBJECT = 0xEE02,
106 MAGIC_NONSHARED = 0xEE03,
107 MAGIC_SHARED_OBJECT = 0xEE06,
108 MAGIC_SHARED = 0xEE07,
109 MAGIC_SPLIT_OBJECT = 0xEE0A,
110 MAGIC_SPLIT = 0xEE0B,
124 std::vector<Segment> segments;
125 std::vector<Relocation> relocations;
126 std::vector<Symbol> symbols;
128 magic_type GetSignature()
const;
130 void SetSignature(magic_type magic);
132 void Clear()
override;
154 std::vector<std::shared_ptr<Linker::Segment>>& Segments();
156 unsigned GetSegmentNumber(std::shared_ptr<Linker::Segment> segment);
158 using LinkerManager::SetLinkScript;
160 void SetOptions(std::map<std::string, std::string>& options)
override;
162 void OnNewSegment(std::shared_ptr<Linker::Segment> segment)
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 helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15