5#include "../dumper/dumper.h"
6#include "../linker/reader.h"
7#include "../linker/segment_manager.h"
8#include "../linker/writer.h"
20 std::string stub_file;
40 ACCESS_TYPE_EMPTY = 0x00,
41 ACCESS_TYPE_TSS16_A = 0x01,
42 ACCESS_TYPE_LDT = 0x02,
43 ACCESS_TYPE_TSS16_B = 0x03,
44 ACCESS_TYPE_CALLGATE16 = 0x04,
45 ACCESS_TYPE_TASKGATE = 0x05,
46 ACCESS_TYPE_INTGATE16 = 0x06,
47 ACCESS_TYPE_TRAPGATE16 = 0x07,
49 ACCESS_TYPE_TSS32_A = 0x09,
51 ACCESS_TYPE_TSS32_B = 0x0B,
52 ACCESS_TYPE_CALLGATE32 = 0x0C,
54 ACCESS_TYPE_INTGATE32 = 0x0E,
55 ACCESS_TYPE_TRAPGATE32 = 0x0F,
72 uint32_t ldt_offset = 0;
73 uint32_t image_offset = 0;
74 uint32_t relocation_offset = 0;
75 uint32_t relocation_count = 0;
76 uint32_t minimum_extent = 0;
77 uint32_t maximum_extent = 0;
78 uint32_t unknown_field = 0;
79 uint32_t gs, fs, ds, ss, cs, es, edi, esi, ebp, esp, ebx, edx, ecx, eax, eflags, eip;
80 std::vector<Segment> ldt;
81 std::shared_ptr<Linker::Image> image;
83 void Clear()
override;
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