Skip to content
/ lddot Public

print ELF shared library dependencies in Graphviz format

License

Notifications You must be signed in to change notification settings

jwilk/lddot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

171 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

lddot prints ELF shared library dependencies in Graphviz format.

Security

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

Example

$ 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

About

print ELF shared library dependencies in Graphviz format

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published