Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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..

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

Rep: Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062
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
nm file: no symbols
in that case.

Hope this helps some.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 PM.

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