elf_loader 0.17.0

A no_std-friendly ELF loader and runtime linker for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[path = "mod.rs"]
mod fixture_support;

fn main() {
    match std::env::args().nth(1).as_deref() {
        Some("native-exec") => {
            let exec = fixture_support::ensure_native_exec();
            println!("{}", exec.display());
        }
        _ => {
            let fixtures = fixture_support::ensure_all();
            println!("{}", fixtures.native_exec.display());
        }
    }
}