5#include "../dumper/dumper.h"
6#include "../linker/module.h"
7#include "../linker/segment.h"
8#include "../linker/segment_manager.h"
9#include "../linker/writer.h"
27 load_mode_type load_mode = MODE_NORMAL;
28 uint32_t entry_address = 0;
29 bool option_no_relocation =
false;
32 std::shared_ptr<Linker::Segment> code, data, bss;
33 uint32_t relocation_size = 0;
34 std::map<uint32_t, unsigned char> relocations;
36 void OnNewSegment(std::shared_ptr<Linker::Segment> segment)
override;
38 void CreateDefaultSegments();
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 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