5#include "../linker/linker.h"
6#include "../linker/module.h"
7#include "../linker/segment.h"
8#include "../linker/writer.h"
26 load_mode_type load_mode = MODE_NORMAL;
27 uint32_t entry_address = 0;
28 bool option_no_relocation =
false;
31 std::shared_ptr<Linker::Segment> code, data, bss;
32 uint32_t relocation_size = 0;
33 std::map<uint32_t, unsigned char> relocations;
35 using LinkerManager::SetLinkScript;
37 void SetOptions(std::map<std::string, std::string>& options)
override;
39 void OnNewSegment(std::shared_ptr<Linker::Segment> segment)
override;
41 void CreateDefaultSegments();
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