Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 897 Bytes

debug_exec.md

File metadata and controls

34 lines (29 loc) · 897 Bytes
$> strace ./main
$> strace -p PID
$> gstack PID
$> ltrace ./main
$> LD_DEBUG=libs ./main
$> LD_DEBUG=help ./main
$> dwarfdump
$> abi-dump
$> readelf -Ws Lib.so | c++filt
$> file main
$> objdump -t Model.so | c++filt
$> ldd -r Model.so
$> readelf -d Model.so # same as ldd
$> nm -C -D Model.so
$> valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all ./main

rpath linux

$> objdump -x lis.so | grep RPATH
$> readelf -d
$> chrpath
$> patchelf

https://amir.rachum.com/blog/2016/09/17/shared-libraries/

Tools Tools

[Tuto1][http://nickdesaulniers.github.io/blog/2016/11/20/static-and-dynamic-libraries/] [Tuto2][http://nickdesaulniers.github.io/blog/2016/08/13/object-files-and-symbols/]