Repository navigation
First release of bincompat, a zero-dependency safe Rust (#![forbid(unsafe_code)]) static ELF64 scanner for Linux binary portability and hardening CI gates.
Highlights
- ELF64 header, program header, dynamic table,
.dynsym,.symtab,.gnu.version, and.gnu.version_rparser with exact offending-symbol attribution (including weak and0x8000hidden flags). bincompat scan <path>: reportsDT_NEEDED,RPATH/RUNPATH, hardening posture (PIE,RELRO,NX, stack canary), symbol version floors, ABI tags (GLIBC_ABI_DT_RELR), and a built-in 8-distro compatibility matrix.bincompat check <path>: enforces--target <distro>presets (rhel-8,ubuntu-20.04,debian-11,rhel-9,ubuntu-22.04,debian-12,ubuntu-24.04,debian-13), explicit--max-glibc/--max-glibcxx/--max-version,--forbid-abi-tag,--forbid-rpath, and--require-hardening.bincompat diff <baseline> <candidate>: detects added shared libraries, bumped symbol version floors, new ABI tags, addedRPATH/RUNPATH, and hardening regressions between builds.- Structured output via
--format text|json|markdown|sarif(SARIF 2.1.0 rulesBC001..BC007andBC101..BC105).
Verification
cargo fmt --all -- --check,cargo clippy --all-targets -- -D warnings, andcargo test --all-targetspassing on Linux, macOS, and Windows CI.- Live
readelfground-truth tests and byte-by-byte truncation safety tests.
Attached Artifacts
bincompat-v0.1.0-x86_64-unknown-linux-gnu.tar.gz(stripped x86_64 Linux binary)SHA256SUMS.txt