Skip to content

Commit

Permalink
Merge pull request #9 from Sovenok-Hacker/master
Browse files Browse the repository at this point in the history
Fix GCC 14 compilation error
  • Loading branch information
0Nera authored Jun 3, 2024
2 parents 14457a8 + 2ec9bed commit 1eadb4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ void *elf_entry(void *module_bin) {
}

void *elf_parse(elf64_header_t *head) {
elf64_section_header_t *symtab = NULL;
// elf64_section_header_t *symtab = NULL;

if (head->e_ident[0] != ELFMAG0 || head->e_ident[1] != ELFMAG1 || head->e_ident[2] != ELFMAG2 ||
head->e_ident[3] != ELFMAG3) {
LOG("Ошибка: Неправильный формат!\n");
return -1;
return (void *)-1;
}

LOG("Точка входа: 0x%x\n", head->e_entry);
Expand Down

0 comments on commit 1eadb4e

Please sign in to comment.