Size: 243
Comment:
|
← Revision 3 as of 2020-03-10 22:00:21 ⇥
Size: 715
Comment: glibc version for executables
|
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 `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 |
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