Differences between revisions 1 and 2
Revision 1 as of 2019-03-04 19:51:21
Size: 243
Editor: SamatJain
Comment:
Revision 2 as of 2019-03-04 20:26:25
Size: 563
Editor: SamatJain
Comment: More stuff
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
|| List shared libraries needed for a shared library || `ldd` || `otool -L` || || || List shared libraries needed for an executable || `ldd a.out` || || ||
|| List shared libraries needed for a shared library || `ldd liba.so` || `otool -L` || ||
|| List symbols in object file, archived library || `nm file.{o,a}` || || ||
|| List symbols in shared library || `nm --dynamic libexample.so` or `readself -s libexample.so` || || ||

=== Linux tools ===

 * ldd
 * nm
 * objdump

BinUtils/related stuff.

Tools for various operating systems

Tool/function

Linux

macOS

Windows/Visual Studio

List shared libraries needed for an executable

ldd a.out

List shared libraries needed for a shared library

ldd liba.so

otool -L

List symbols in object file, archived library

nm file.{o,a}

List symbols in shared library

nm --dynamic libexample.so or readself -s libexample.so

Linux tools

  • ldd
  • nm
  • objdump

SamatsWiki: CheatSheet/BinUtils (last edited 2020-03-10 22:00:21 by SamatJain)