pub fn load_elf_into_task(
file: &mut File,
task: &mut Task,
) -> Result<u64, ElfLoaderError>
Expand description
Load an ELF file into a task’s memory space
§Arguments
file
: A mutable reference to a file handle containing the ELF filetask
: A mutable reference to the task into which the ELF file will be loaded
§Returns
Result<u64, ElfLoaderError>
: The entry point address of the loaded ELF file on success, or anElfLoaderError
on failure
§Errors
ElfLoaderError
: If any error occurs during the loading process, such as file read errors, parsing errors, or memory allocation errors