[Ilugc] Linux application dependency library listing

  • From: codeshepherd@xxxxxxxxx (Deepan Chakravarthy)
  • Date: Wed Apr 26 16:25:03 2006

Ramkumar R wrote:

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

ldd gcc

or

/lib/ld-<version>.so --list /usr/bin/gcc
  
This is interesting.  But i dont understand how you can use a shared 
object file as a standalone executable.   Ramkumar , can you explain 
this more.

Thanks
Deepan Chakravarthy N
www.codeshepherd.com
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"
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

  

Other related posts: