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