Half working elf loader

This commit is contained in:
Alex
2023-09-02 19:46:10 +03:00
parent 20227aabe5
commit 0840c046b9
3 changed files with 197 additions and 118 deletions

View File

@ -66,6 +66,18 @@ namespace Execute
std::vector<AuxiliaryVector> Elfauxv;
Tasking::IP ip;
void *ELFProgramHeaders;
void LoadPhdrs_x86_32(int fd,
Elf64_Ehdr ELFHeader,
Memory::MemMgr *mm,
Tasking::PCB *TargetProcess);
void LoadPhdrs_x86_64(int fd,
Elf64_Ehdr ELFHeader,
Memory::MemMgr *mm,
Tasking::PCB *TargetProcess);
void GenerateAuxiliaryVector_x86_32(Memory::MemMgr *mm,
int fd,
Elf32_Ehdr ELFHeader,