Get list of static libraries used in an executable

后端 未结 5 1179
借酒劲吻你
借酒劲吻你 2020-12-07 13:44

Since ldd lists only the dynamic libraries, is there a way to extract the information about the static libraries used to create the executable?

5条回答
  •  鱼传尺愫
    2020-12-07 13:54

    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.

提交回复
热议问题