18 class ModuleCollector;
19 class OptionCollector;
21 class OptionDescription;
49 virtual void ReadFile(
const std::shared_ptr<Reader>& rd) = 0;
53 offset_t
WriteFile(
const std::shared_ptr<Writer>& wr)
const override = 0;
90 virtual std::shared_ptr<OptionCollector>
GetOptions();
94 virtual void SetOptions(std::map<std::string, std::string>& options);
99 std::optional<std::string>
FetchOption(std::map<std::string, std::string>& options, std::string name);
104 std::string
FetchOption(std::map<std::string, std::string>& options, std::string name, std::string default_value);
109 std::optional<offset_t>
FetchIntegerOption(std::map<std::string, std::string>& options, std::string name);
114 virtual void SetModel(std::string model);
118 virtual void SetLinkScript(std::string script_file, std::map<std::string, std::string>& options);
206 virtual unsigned FormatAdditionalSectionFlags(std::string section_name)
const;
224 virtual void SetupOptions(std::shared_ptr<OutputFormat> format);
An abstract interface that separates structure and presentation of the data inside a file.
Definition dumper.h:1009
Represents abstract data contents whose data can be written to a file.
Definition image.h:17
Helper class that collects object files and libraries, and includes library objects for required symb...
Definition module_collector.h:25
Encodes an object module file as a collection of sections, symbols and relocations.
Definition module.h:24