Skip to content

diff ldd of two or more files

Notifications You must be signed in to change notification settings

rudojaksa/lddiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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