mirror of
https://github.com/limine-bootloader/limine
synced 2025-02-08 05:04:14 +03:00
lib/elf: Fix bug where the wrong struct was checked in elf64_load()
This commit is contained in:
parent
300cdc9498
commit
86a3dcd33b
@ -771,7 +771,7 @@ bool elf64_load(uint8_t *elf, uint64_t *entry_point, uint64_t *_slide, uint32_t
|
||||
for (uint16_t j = 0; j < hdr->ph_num; j++) {
|
||||
struct elf64_phdr *phdr_in = (void *)elf + (hdr->phoff + j * hdr->phdr_size);
|
||||
|
||||
if (phdr_in->p_type != PT_LOAD || phdr->p_memsz == 0) {
|
||||
if (phdr_in->p_type != PT_LOAD || phdr_in->p_memsz == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user