elf: Fix bug where slide was not added to entry point address

This commit is contained in:
mintsuki 2020-12-28 00:00:49 +01:00
parent 4bebeba64b
commit fcd3848a22
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -324,7 +324,7 @@ int elf64_load(struct file_handle *fd, uint64_t *entry_point, uint64_t *top, uin
return -1;
}
*entry_point = hdr.entry;
*entry_point = hdr.entry + slide;
return 0;
}