PeachOS icon indicating copy to clipboard operation
PeachOS copied to clipboard

Checking if ELF file is executable is never done

Open fedi-nabli opened this issue 2 years ago • 0 comments

In lecture 94, Implementing the ELF Loader - Part 2, we create the funciton static bool elf_is_executable(struct elf_header* header) since we are only working with executable files, but later at the video, when creating the int elf_validate_loaded(struct elf_header* header) function, we do not call it to validate the file format.

fedi-nabli avatar Jan 31 '24 22:01 fedi-nabli