DT_SCE_IMPORT_LIB,DT_SCE_ORIGINAL_FILENAME,DT_SCE_MODULE_INFO added. Dynamic loader should be ok for now

This commit is contained in:
georgemoralis 2023-06-12 08:16:20 +03:00
parent 6fcfe38e26
commit 0682830e2f
3 changed files with 90 additions and 32 deletions

View file

@ -32,6 +32,21 @@ struct ModuleInfo
};
};
struct LibraryInfo
{
std::string name;
union
{
u64 value;
struct
{
u32 name_offset;
u16 version;
u16 id;
};
};
};
struct DynamicModuleInfo
{
void* hash_table = nullptr;
@ -67,6 +82,11 @@ struct DynamicModuleInfo
u64 flags = 0;
std::vector<const char*> needed;
std::vector<ModuleInfo> import_modules;
std::vector<ModuleInfo> export_modules;
std::vector<LibraryInfo> import_libs;
std::string filename;//filename with absolute path
};