A elf32 loader in pure rust for osdev purposes
examples | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
readme.md |
elf32-loader
A crate that provides an way of loading elf32 files.
License
This project is licensed under AGPL3.0-or-later; for more details see the LICENSE
file.
Usage
Note: this crate is an early version, any API may change in the future!
For examples on how to use this, please see the examples
folder inside the repository.
Restrictions
-
Currently only the
ET_REL
type (relocateable) is supported -
Elf file must be loaded fully into an memoryregion that is both writeable and executable! An example of loading a file this way can be found in
examples/runner/src/main.rs
inside the repository. -
Only i386 / x86 relocations are supported for now.
-
The dynamic linker only supports
R_386_32
andR_386_PC32
right now.