Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jwilk/lddot

print ELF shared library dependencies in Graphviz format
https://github.com/jwilk/lddot

Last synced: about 1 month ago
JSON representation

print ELF shared library dependencies in Graphviz format

Awesome Lists containing this project

README

        

Overview
========

**lddot** prints ELF shared library dependencies in Graphviz_ format.

.. _Graphviz: https://www.graphviz.org/

Security
--------

**lddot** uses ldd_ under the hood,
and therefore might not be secure when used on untrusted input.

.. _ldd: https://man7.org/linux/man-pages/man1/ldd.1.html

Example
-------

.. code:: console

$ lddot $(command -v bash) | graph-easy --as boxart

┌────────────────────────────────────────────────────┐
│ │
│ │
┌─────────────────┼────────────────────────────┐ │
│ │ ∨ ∨
┌───────────┐ ┌──────────────────────┐ ┌─────────────────┐ ┌────────────────┐ ┌───────────────┐
│ /bin/bash │ ──> │ /lib/libncurses.so.5 │ ──> │ /lib/libdl.so.2 │ ──> │ /lib/libc.so.6 │ ──> │ ld-linux.so.2 │
└───────────┘ └──────────────────────┘ └─────────────────┘ └────────────────┘ └───────────────┘
│ │ ∧ ∧
└──────────────────────────────────────────────┼───────────────────────┘ │
│ │
│ │
└──────────────────────────────────────────────┘

Prerequisites
=============

* Python ≥ 3.7
* GNU libc
* GNU binutils

.. vim:ts=3 sts=3 sw=3 et ft=rst