Modules do now have a flag if they should be run before their entrypoint.

This commit is contained in:
Maschell
2020-06-07 13:58:55 +02:00
parent 6a6a41bf1d
commit e70ec9b345
5 changed files with 22 additions and 39 deletions

View File

@@ -70,6 +70,7 @@ public:
const std::vector<ExportData> &getExportDataList() const {
return export_data_list;
}
void addHookData(const HookData &data) {
hook_data_list.push_back(data);
}
@@ -131,6 +132,14 @@ public:
return this->export_name;
}
bool isInitBeforeEntrypoint() const {
return this->initBeforeEntrypoint;
}
void setInitBeforeEntrypoint(bool value) {
this->initBeforeEntrypoint = value;
}
private:
std::vector<RelocationData> relocation_data_list;
std::vector<ExportData> export_data_list;
@@ -146,4 +155,5 @@ private:
uint32_t startAddress = 0;
uint32_t endAddress = 0;
uint32_t entrypoint = 0;
bool initBeforeEntrypoint = false;
};