+-
linux – ld:(.eh_frame)中的错误;不会创建.eh_frame_hdr表
我在C中编写一个非常简单的程序hello.当在exe文件中使用ld时返回此项

ld: error in hello(.eh_frame); no .eh_frame_hdr table will be created.

我没有在/etc/ld.so.conf中定义任何LD_LIBRAY_PATH或路径我尝试过与ls相同并返回:

ld: error in /bin/ls(.eh_frame); no .eh_frame_hdr table will be created.
ld: warning: cannot find entry symbol _start; defaulting to 0000000000402920

发生了什么?我使用的是Debian,而我的GCC版本是(Debian 4.7.2-5).

最佳答案
我相信你打算使用的实用程序是ldd(LDD),而不是ld.

ldd将显示你的exe使用的所有共享链接库..或者,至少在编译时链接它.

点击查看更多相关文章

转载注明原文:linux – ld:(.eh_frame)中的错误;不会创建.eh_frame_hdr表 - 乐贴网