Registry / utility / elf
library0.8.0rscratesunverified

A pure-rust library for parsing ELF files.

# Cargo.toml [dependencies] elf = "0.8.0"
INSTALL
IMPORT
SIG · ELF
E
elf
utilityrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ElfBytes
use elf::ElfBytes;

Parses an ELF binary and prints its entry point address.

use elf::ElfBytes; use std::fs; fn main() -> Result<(), Box<dyn std::error::Error>> { let data = fs::read("/bin/ls")?; let elf = ElfBytes::minimal_parse(&data)?; println!("Entry point: 0x{:x}", elf.ehdr.e_entry); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
elf — cargo add elf · libregistry