9#include "../linker/linker.h"
10#include "../linker/module.h"
11#include "../linker/segment.h"
12#include "../linker/writer.h"
13#include "../dumper/dumper.h"
15namespace DigitalResearch
111 std::shared_ptr<Linker::Writable>
image =
nullptr;
115 virtual void Clear();
133 std::string GetDefaultName();
158 bool operator<(
const relocation_source& other)
const;
167 uint16_t paragraph = 0;
175 Relocation(uint8_t source, uint16_t paragraph, uint16_t offset, uint8_t target)
176 : source(source), paragraph(paragraph), offset(offset), target(target)
181 : source(source.segment), paragraph(source.offset >> 4), offset(source.offset & 0xF), target(target)
185 operator bool()
const;
217 std::shared_ptr<CPM86Format>
module = nullptr;
218 static std::shared_ptr<CPM86Format> dynamic_module;
219#define RSX_TERMINATE (std::shared_ptr<CPM86Format>(nullptr))
220#define RSX_DYNAMIC (::DigitalResearch::CPM86Format::rsx_record::dynamic_module)
315 void Clear()
override;
357 std::vector<ldt_descriptor> ldt;
359 void Clear()
override;
423 void Clear()
override;
462 uint16_t GetRelocationSizeParas()
const;
464 size_t CountValidGroups();
466 number_t FindSegmentGroup(
unsigned group)
const;
468 void CheckValidSegmentGroup(
unsigned group);
470 bool IsFastLoadFormat()
const;
480 offset_t GetFullFileSize()
const;
512 unsigned FormatAdditionalSectionFlags(std::string section_name)
const override;
514 std::vector<std::shared_ptr<Linker::Segment>>& Segments();
516 unsigned GetSegmentNumber(std::shared_ptr<Linker::Segment> segment);
518 using LinkerManager::SetLinkScript;
520 void SetModel(std::string model)
override;
522 void SetOptions(std::map<std::string, std::string>& options)
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