LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2012, 11:01 PM   #1
Mayurapriyan
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
To find the dependencies of statically linked executable


Hi,
As we used to find the shared library dependencies of a dynamic executable( using ldd or objdump), is there any way to find the libraries that are in the statically linked executable..

regards
mayur
 
Old 02-03-2012, 04:21 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,477

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
If you mean that you want to know for a compiled and linked executable, you can use nm. nm lists the symbol table from object files and is usable both with a .o and with the executable; there are a number of options, see the manual page for details of what is displayed and how to alter what is displayed..

Note that nm will not show anything for an executable that has been stripped (striped means that the object table is no longer part of the executable); you'd see
Code:
nm file: no symbols
in that case.

Hope this helps some.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox 32bit still statically linked? Olaus Slackware 9 10-30-2009 10:29 PM
rebuild statically linked ports 24jedi *BSD 2 09-15-2006 11:56 PM
Really statically linked skype client ? tothzp Linux - Software 1 04-21-2006 08:17 AM
How to find executable's dependencies? jdupre Linux - General 4 11-23-2005 05:34 AM
Gnucash statically linked binary melinda_sayang Slackware 7 07-11-2004 03:32 AM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration