mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 22:14:37 +00:00
Fix issue with reading ELF header
This commit is contained in:
parent
053e167002
commit
fa6779b8c7
@ -141,6 +141,7 @@ namespace Execute
|
||||
}
|
||||
|
||||
Elf64_Ehdr ELFHeader;
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
fread(fd, (uint8_t *)&ELFHeader, sizeof(Elf64_Ehdr));
|
||||
uintptr_t EntryPoint = ELFHeader.e_entry;
|
||||
debug("Entry point is %#lx", EntryPoint);
|
||||
@ -383,6 +384,7 @@ namespace Execute
|
||||
}
|
||||
|
||||
Elf64_Ehdr ELFHeader;
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
fread(fd, (uint8_t *)&ELFHeader, sizeof(Elf64_Ehdr));
|
||||
uintptr_t EntryPoint = ELFHeader.e_entry;
|
||||
debug("Entry point is %#lx", EntryPoint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user