[Ilugc] Linux application dependency library listing

  • From: andyetitmoves@xxxxxxxxx (Ramkumar R)
  • Date: Mon Apr 24 14:55:22 2006

# xxx gcc
Will show all the libraries used by the GCC executable.

ldd gcc

or

/lib/ld-<version>.so --list /usr/bin/gcc

note that this will show only the libraries which are loaded at
startup. the program can choose to load libraries at runtime. these
wont be included in this list. you can get all the loaded libraries at
any point during the execution of the process by

cat /proc/<pid>/maps | grep ' r-xp .*\.so[0-9.]*$'

it moves on...

--
April 1: This is the day upon which we are reminded of
what we are on the other three hundred and sixty-four.
          -- Mark Twain, "Pudd'nhead Wilson's Calendar"

Other related posts: