Expand description
Minimal ELF reader, 32- and 64-bit: enough to find PT_INTERP.
Structs§
- ElfInfo
- What an
execveneeds to know about an ELF file.
Enums§
- File
Kind - Classification of the first bytes of an executable file.
Constants§
- MAX_
PHNUM 🔒 - Maximum number of program headers we are willing to walk.
- PT_
INTERP 🔒 - Program header type of the dynamic loader path.
Functions§
- classify
- Classifies a file from its leading bytes and, for ELF, its program headers.
- classify_
file - Classifies the file at
host_pathby reading it.