crt0stack 0.1.0

Tools for reading and creating Linux crt0 stack data
Documentation
  • Coverage
  • 94.29%
    33 out of 35 items documented2 out of 7 items with examples
  • Size
  • Source code size: 52.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • enarx/crt0stack
    7 8 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • haraldh npmccallum github:enarx:owners

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

crt0stack

Create the initial stack frame to start an ELF binary on Linux

Examples

use crt0stack::{Builder, Entry};

let mut stack = [1u8; 512];
let stack = stack.as_mut();

let mut builder = Builder::new(stack);

builder.push("/init").unwrap();
let mut builder = builder.done().unwrap();

builder.push("HOME=/root").unwrap();
let mut builder = builder.done().unwrap();

let auxv = [
    Entry::Gid(1000),
    Entry::Uid(1000),
    Entry::Platform("x86_64"),
    Entry::ExecFilename("/init"),
];
auxv.iter().for_each(|e| builder.push(e).unwrap());

let handle = builder.done().unwrap();

License: Apache-2.0