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
.dynamicsection - mmap
- Map memory to address space
- object
- The original elf object
- segment
- The Memory mapping of elf object
Structs§
- Core
Component - The core part of an elf object
- Core
Component Ref CoreComponentRefis a version ofCoreComponentthat holds a non-owning reference to the managed allocation.- ElfDylib
- An unrelocated dynamic library
- Loader
- The elf object loader
- Relocated
Dylib - A dynamic library that has been relocated
- Symbol
- A symbol from elf object
- User
Data - 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.