Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.22 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.22 KB

lddiff tool to diff ldd of two or more files

Lddiff lists shared libs required by programs or libs. For two or more files it aligns them as a line-by-line diff. It's a wrapper of ldd and od.

      red  missing libs
  default  primary libs, referenced directly from the file
    green  libs referenced from libs
  magenta  additional libs not seen by `ldd` but found by `od`
    black  blacked-out libs present in all existing columns  
    white  blacked-out libs with columns missing, `-dw` option

Man page

Try also

objdump -p $FILE | grep NEEDED | sed 's:.* ::' | sort
readelf -d $FILE | grep NEEDED | sed 's:.*\[::' | sed 's:\]::' | sort
lsof -p $PID | sed 's:.* ::' | grep .so | sed 's:.*/::' | sort
ldd $FILE | grep ' => ' | sed 's: => .*::' | sed 's:\t::' | sort
od -S 7 $FILE | grep lib | grep -F .so | cut -d ' ' -f 2 | sed 's:^.*/::' | grep '^lib' | sort -u


R.Jaksa 2024 GPLv3