Skip to main content

Module elf

Module elf 

Source
Expand description

Minimal ELF reader, 32- and 64-bit: enough to find PT_INTERP.

Structs§

ElfInfo
What an execve needs to know about an ELF file.

Enums§

FileKind
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_path by reading it.