Linux Notes
objdump in linux specializes in disassembling binary files.
$ objdump -D <input file>.o
$ objdump -D -M intel <input file>.o
$ objdump -p /path/to/program | grep NEEDED
$ readelf -d /path/to/program | grep NEEDED
$ nm <path-to-binary> lists all symbols of a binary file
$ nm -D <path-to-binary> lists only the symbols in the dynamic section
$ nm -C <path-to-binary lists the symbols in demangled format
$ nm -D --no-demangle <path-to-binary>
Listing Load-time Dependencies
$ ldd <path-to-binary>
List all the libraries whose runtime paths are known & available to the loader
$ ldconfig -p
$ ldconfig -p | grep <library-of-interest>
List of shared libs opened by gedit
$ lsof -p`pgrep gedit