我在 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 : error in (. eh_frame);不会创建 .eh_frame_hdr 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19548852/