https://github.com/namhyung/elftree
ELF library dependency viewer
https://github.com/namhyung/elftree
dependency dependency-tree elf
Last synced: about 1 year ago
JSON representation
ELF library dependency viewer
- Host: GitHub
- URL: https://github.com/namhyung/elftree
- Owner: namhyung
- License: mit
- Created: 2017-03-08T13:52:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-16T03:01:08.000Z (about 8 years ago)
- Last Synced: 2024-06-20T17:42:06.697Z (almost 2 years ago)
- Topics: dependency, dependency-tree, elf
- Language: Go
- Size: 141 KB
- Stars: 48
- Watchers: 6
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ELF tree
Show library dependency of an ELF binary in a tree form. It supports
folding and expanding subtree and shows related information.

## Usage
$ elftree
Usage: elftree []
$ elftree -h
Usage of elftree:
-p Show library path
-stdio
Show it on standard IO
-tui
Show it with TUI (default true)
-v Show binary info
$ elftree -stdio `which firefox`
firefox
libpthread.so.0
libc.so.6
ld-linux-x86-64.so.2
ld-linux-x86-64.so.2
libdl.so.2
libc.so.6
ld-linux-x86-64.so.2
libstdc++.so.6
libm.so.6
libc.so.6
ld-linux-x86-64.so.2
libc.so.6
ld-linux-x86-64.so.2
libgcc_s.so.1
libc.so.6
libm.so.6
libgcc_s.so.1
libc.so.6
ld-linux-x86-64.so.2
### TUI keys
* `f`: file header view
* `s`: section header view
* `d`: dynamic info view
* `y`: symbol view
* `ENTER`: toggle folding
* `TAB`: switch window
* `q`: quit
## How to install
If you have golang environment setup:
$ go get github.com/namhyung/elftree
Or, just download the binary:
$ wget https://github.com/namhyung/elftree/releases/download/v0.1/elftree-linux-amd64
$ sudo install -D elftree-linux-amd64 /usr/local/bin/elftree