Crate elf_loader

Source
Expand description

§elf_loader

A lightweight, extensible, and high-performance library for loading ELF files.

§Usage

It implements the general steps for loading ELF files and leaves extension interfaces, allowing users to implement their own customized loaders.

§Example

This repository provides an example of a mini-loader implemented using elf_loader. The miniloader can load PIE files and currently only supports x86_64.

Modules§

abi
Contains ELF constants defined in the ELF gABI and various extensions
arch
Contains content related to the CPU instruction set
dynamic
Parsing .dynamic section
mmap
Map memory to address space
object
The original elf object
segment
The Memory mapping of elf object

Structs§

CoreComponent
The core part of an elf object
CoreComponentRef
CoreComponentRef is a version of CoreComponent that holds a non-owning reference to the managed allocation.
ElfDylib
An unrelocated dynamic library
Loader
The elf object loader
RelocatedDylib
A dynamic library that has been relocated
Symbol
A symbol from elf object
UserData
User-defined data associated with the loaded ELF file

Enums§

Error
elf_loader error types

Functions§

parse_phdr_error
set_global_scope
Set the global scope, lazy binding will look for the symbol in the global scope.

Type Aliases§

Result