Tools for working with ELFs
Here I collect a list of tools which I found useful for working with ELFs (incl. executables and shared libraries).
Dumping symbols
objdump
:objdump --TC xxx.so
- The
-C
flag enables demangling.
- The
ldd
:ldd xxx.so
- Print shared object dependencies, which allows you to find out which shared library is missing.
ld
:ld xxx.so
nm
:nm xxx.so
- The
-C
flag enables demangling.
- The
readelf
:readelf --dyn-syms xxx.so
- The
--demangle
flag enables demangling.
- The
patchelf
:- Particularly useful when you bring your own GLIBC and want to link to the updated one.
Demangling
llvm-cxxfilt
installed with LLVMc++filt
on Linux