-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
42 lines (34 loc) · 1.51 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Name: elflibviewer (ELF Library Viewer)
Author: Michael Pyne <[email protected]>
Purpose: This program shows a list of libraries that a given application or library
depends on. This is done recursively as well, so instead of the flat list given by tools
like ldd(1), you can tell what libraries are depended upon directly, and indirectly.
You could use this to determine what library is causing link errors for your application,
for instance.
Requirements:
readelf (as found in GNU binutils)
Qt 4.8
That's it. Keep in mind only ELF-format libraries and executables are supported. Windows
uses something else, which this tool won't help with (on the other hand, there are already
tons of fine superior tools that do much the same thing available for Windows)
Build:
$ git clone [email protected]:sergey-shambir/elflibviewer.git
$ cd elflibviewer
$ mkdir elflibviewer-build && cd elflibviewer-build
$ qmake-qt4 ../elflibviewer/elflibviewer.pro && make
You can open a file to view after running the program, or drag-and-drop it, or pass the file name on
the command line.
When the program is open, you can type into the search line to highlight
libraries with matching names, and any other libraries depending on that one.
For instance, if your app App was broke due to a missing libXfoo and the dep tree
looked like this:
App
+-libc
+-libm
+-libX11
|+-libXfoo
|\-libXrandr
+-libQtGui
\-libQtCore
then searching for "libXfoo" (or even just Xfoo) would highlight App, libX11, and libXfoo
to show you the affected libraries.