leviso-elf
ELF binary analysis and library dependency copying utilities. Uses readelf for cross-compilation safe dependency detection (unlike ldd which executes binaries).
Status
| Metric | Value |
|---|---|
| Stage | Beta |
| Target | x86_64 Linux |
| Last verified | 2026-01-23 |
Works
- Dependency analysis via readelf -d
- Recursive transitive dependency resolution
- Library copying with path preservation
- Binary search in standard Linux paths
Known Issues
- See parent repo issues
Author
[Waiting for human input]
Features
- Dependency Analysis: Parse
readelf -doutput to find shared library dependencies - Recursive Resolution: Trace full dependency tree including transitive dependencies
- Library Copying: Copy binaries with all required libraries to a target directory
- Path Search: Find binaries and libraries in standard Linux paths
Usage
use ;
use Path;
let source_root = new;
let dest_root = new;
// Find all library dependencies for a binary (recursive)
let binary_path = source_root.join;
let deps = get_all_dependencies?;
// Copy a library to target directory with configurable paths
copy_library_to?;
// Find a binary in standard paths
if let Some = find_binary
// Find a library with extra search paths
if let Some = find_library
Why readelf instead of ldd?
ldd executes the binary to resolve dependencies, which fails for cross-compiled binaries and can be a security risk. readelf -d parses the ELF headers directly without execution.
License
MIT