leviso_elf/
lib.rs

1//! ELF binary analysis and copying utilities.
2//!
3//! Uses `readelf -d` instead of `ldd` to extract library dependencies.
4//! This works for cross-compilation since readelf reads ELF headers directly
5//! without executing the binary (which ldd does via the host dynamic linker).
6
7mod analyze;
8mod copy;
9mod paths;
10
11pub use analyze::{get_all_dependencies, get_library_dependencies, parse_readelf_output};
12pub use copy::{copy_dir_recursive, copy_library_to, create_symlink_if_missing, make_executable};
13pub use paths::{find_binary, find_library, find_sbin_binary};