Crate kernel_loader

Source
Expand description

Linux kernel ELF file loader.

Modulesยง

arm64 ๐Ÿ”’
Linux arm64 kernel loader. https://www.kernel.org/doc/Documentation/arm64/booting.txt
elf ๐Ÿ”’
multiboot ๐Ÿ”’
Multiboot kernel loader

Structsยง

Elf64 ๐Ÿ”’
LoadedKernel
Information about a kernel loaded with the load_elf function.

Enumsยง

ElfClass
ELF image class (32- or 64-bit ELF)
Error

Functionsยง

load_arm64_kernel
load_arm64_kernel_lz4
load_elf
Loads a kernel from a 32-bit or 64-bit ELF image into memory.
load_multiboot
Load a Multiboot kernel image into memory.
multiboot_header_from_file
Scan the provided kernel file to find a Multiboot header, if present.
read_elf ๐Ÿ”’
Reads the headers of an ELF32 or ELF64 object file. Returns ELF file and program headers, converted to ELF64 format as a single internal representation that can handle either 32- or 64-bit images, and the ELF class of the original image.
read_elf_by_type ๐Ÿ”’
Reads the headers of an ELF32 or ELF64 object file. Returns ELF file and program headers, converted to ELF64 format. FileHeader and ProgramHeader are the ELF32 or ELF64 ehdr/phdr types to read from the file. Caller should check that file is a valid ELF file before calling this function.

Type Aliasesยง

Result