2022-05-07 21:12:18 +02:00
|
|
|
#pragma once
|
|
|
|
#include "module/ModuleData.h"
|
2022-10-05 15:39:32 +02:00
|
|
|
#include <coreinit/dynload.h>
|
2022-10-05 18:16:42 +02:00
|
|
|
#include <map>
|
2022-05-07 21:12:18 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
bool ResolveRelocations(std::vector<std::shared_ptr<ModuleData>> &loadedModules,
|
2022-10-05 15:39:32 +02:00
|
|
|
bool skipMemoryMappingModule,
|
2022-10-05 18:16:42 +02:00
|
|
|
std::map<std::string, OSDynLoad_Module> &usedRPls);
|
2022-05-07 21:12:18 +02:00
|
|
|
|
|
|
|
bool doRelocation(const std::vector<std::shared_ptr<ModuleData>> &moduleList,
|
|
|
|
const std::vector<std::unique_ptr<RelocationData>> &relocData,
|
|
|
|
relocation_trampoline_entry_t *tramp_data,
|
|
|
|
uint32_t tramp_length,
|
2022-10-05 18:16:42 +02:00
|
|
|
std::map<std::string, OSDynLoad_Module> &usedRPls);
|