views:

342

answers:

3

Since ldd lists only the dynamic libraries. Is there a way to extract the info. about static libraries used to create the executable ?

TIA, Saurabh

+2  A: 

No, the names of the libraries are discarded during the linking process. However, if your executable contains debug information (i.e. it was compiled with the -g flag), you may be able to get information from that.

anon
+3  A: 

Unless a given compiler stores some sort of meta data inside the binary then, no. A static library is code that is directly compiled into the binary.

Goz
+3  A: 

See here.

Al