#elf #ldd #tree #read #wheel #automatic #musllinux

bin+lib lddtree

Read the ELF dependency tree

21 releases

0.3.4 Jan 7, 2024
0.3.3 Jun 12, 2023
0.3.2 Oct 24, 2022
0.2.9 Apr 1, 2022
0.2.4 Dec 23, 2021

#73 in Filesystem

Download history 3817/week @ 2023-12-06 3692/week @ 2023-12-13 3279/week @ 2023-12-20 3587/week @ 2023-12-27 5079/week @ 2024-01-03 4870/week @ 2024-01-10 5856/week @ 2024-01-17 4782/week @ 2024-01-24 6232/week @ 2024-01-31 5438/week @ 2024-02-07 4897/week @ 2024-02-14 9775/week @ 2024-02-21 16856/week @ 2024-02-28 22368/week @ 2024-03-06 37524/week @ 2024-03-13 25302/week @ 2024-03-20

103,815 downloads per month
Used in 2 crates

MIT license

21KB
468 lines

Contains (ELF exe/lib, 10KB) tests/test.elf

lddtree-rs

CI Crates.io docs.rs

Read the ELF dependency tree, this does not work like ldd in that we do not execute/load code (only read files on disk).

This is roughly a Rust port of the lddtree.py from the auditwheel project. It's intended to be used in maturin for implementing automatic repair of manylinux and musllinux wheels.

Installation

Add it to your Cargo.toml:

[dependencies]
lddtree = "0.2"

Command line utility

There is also a simple cli utility which can be installed via

cargo install lddtree

Usage: lddtree <pathname> [root]

  • pathname is the path to a linux shared library.
  • root is an optional path to a sysroot directory.

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Dependencies

~1MB
~19K SLoC