8#include "../linker/linker.h"
9#include "../linker/module.h"
10#include "../linker/segment.h"
11#include "../linker/writer.h"
12#include "../dumper/dumper.h"
14namespace DigitalResearch
103 std::shared_ptr<Linker::Writable>
code =
nullptr;
107 std::shared_ptr<Linker::Writable>
data =
nullptr;
120 operator size_t()
const;
167 void Clear()
override;
182 template <
typename SizeType>
186 offset_t last_relocation = 0;
189 offset_t difference = it.first - last_relocation;
190 uint8_t highbit = it.second == 2 ? 0x80 : 0x00;
191 if(difference != 0 && difference <= 0x7C)
195 else if(difference < 0x100)
200 else if(difference < 0x10000)
237 unsigned FormatAdditionalSectionFlags(std::string section_name)
const override;
239 using LinkerManager::SetLinkScript;
241 void SetOptions(std::map<std::string, std::string>& options)
override;
243 void OnNewSegment(std::shared_ptr<Linker::Segment> segment)
override;
245 void CreateDefaultSegments();
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
void WriteWord(size_t bytes, uint64_t value, EndianType endiantype)
Read a word.
Definition writer.cc:65