⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

find_interpreter

Function find_interpreter 

Source
pub fn find_interpreter(
    data: &[u8],
    program_headers: &[Elf64ProgramHeader],
) -> Result<Option<String>, KernelError>
Expand description

Find the interpreter path from a list of program headers.

Scans for a PT_INTERP segment and extracts the null-terminated path string from the ELF data. Returns None for statically linked binaries.