mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 02:45:00 +00:00
more work on linker , closer to load to memory
This commit is contained in:
parent
b27942c46b
commit
5d0a5af495
4 changed files with 48 additions and 28 deletions
|
@ -6,6 +6,8 @@
|
|||
struct Module
|
||||
{
|
||||
Elf* elf = nullptr;
|
||||
u64 aligned_base_size = 0;
|
||||
u64 base_virtual_addr = 0; //base virtual address
|
||||
};
|
||||
|
||||
class Linker
|
||||
|
@ -16,6 +18,7 @@ public:
|
|||
|
||||
Module* LoadModule(const std::string& elf_name);
|
||||
Module* FindModule(/*u32 id*/);
|
||||
void LoadModuleToMemory(Module* m);
|
||||
|
||||
private:
|
||||
std::vector<Module*> m_modules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue