compilation fix :)
This commit is contained in:
parent
3ac9fed23a
commit
d4c4c0177d
@ -143,7 +143,8 @@ int ELFLoader::check_elf_image(VFS::Node* node)
|
|||||||
kwarnln("ELF file has no PHDRS");
|
kwarnln("ELF file has no PHDRS");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
int i, loadable_sections;
|
int i;
|
||||||
|
int loadable_sections = 0;
|
||||||
Elf64_Phdr phdr;
|
Elf64_Phdr phdr;
|
||||||
for (VFS::read(node, elf_ehdr.e_phoff, sizeof(Elf64_Phdr), (char*)&phdr), i = 0; i < elf_ehdr.e_phnum;
|
for (VFS::read(node, elf_ehdr.e_phoff, sizeof(Elf64_Phdr), (char*)&phdr), i = 0; i < elf_ehdr.e_phnum;
|
||||||
i++, VFS::read(node, elf_ehdr.e_phoff + (i * elf_ehdr.e_phentsize), sizeof(Elf64_Phdr), (char*)&phdr))
|
i++, VFS::read(node, elf_ehdr.e_phoff + (i * elf_ehdr.e_phentsize), sizeof(Elf64_Phdr), (char*)&phdr))
|
||||||
|
Loading…
Reference in New Issue
Block a user