Differences between revisions 2 and 3
Revision 2 as of 2019-03-04 20:26:25
Size: 563
Editor: SamatJain
Comment: More stuff
Revision 3 as of 2020-03-10 22:00:21
Size: 715
Editor: SamatJain
Comment: glibc version for executables
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
|| List symbols in shared library || `nm --dynamic libexample.so` or `readself -s libexample.so` || || || || List symbols in shared library || `nm --dynamic libexample.so` or `readelf -s libexample.so` || || ||
|| Version of glibc is needed for an Linux/ELF executable || `readelf -V ${BINARY}` or `objdump -T ${BINARY} | grep -o 'GLIBC_.* ' | sort | uniq` || ||

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 readelf -s libexample.so

Version of glibc is needed for an Linux/ELF executable

readelf -V ${BINARY} or objdump -T ${BINARY} | grep -o 'GLIBC_.* ' | sort | uniq

Linux tools

  • ldd
  • nm
  • objdump

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