LLE libc + other fixes part1 (#97)

* app0 folder is absolute

* some improvements on symbols types

* clang format

* missing libs.h

* improved symbols_resolver

* moved config to config folder

* functions to dump import functions

* improved logging output

* option for debugdump and improvements

* Apply suggestions from code review

Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>

* clang format

---------

Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
georgemoralis 2024-03-11 13:26:33 +02:00 committed by GitHub
parent 00d401e103
commit 02dcf4d45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 130 additions and 36 deletions

View file

@ -100,6 +100,8 @@ struct Module {
u64 aligned_base_size = 0;
u64 base_virtual_addr = 0;
std::string file_name;
std::vector<u8> m_dynamic;
std::vector<u8> m_dynamic_data;
DynamicModuleInfo dynamic_info{};
@ -124,9 +126,10 @@ public:
return m_hle_symbols;
}
void Relocate(Module* m);
void Resolve(const std::string& name, int Symtype, Module* m,
void Resolve(const std::string& name, Loader::SymbolType Symtype, Module* m,
Loader::SymbolRecord* return_info);
void Execute();
void DebugDump();
private:
const ModuleInfo* FindModule(const Module& m, const std::string& id);