linux - ld : error in (. eh_frame);不会创建 .eh_frame_hdr 表

标签 linux linker debian

我在 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/

相关文章:

c++ - 有没有办法忽略未使用的 undefined reference ?

javascript - 开源 Linux Acrobat Javascript 编辑器

emacs - 使用 openCL 设置 emacs

linux - 加载共享库时出错 : libboost_system. so.1.49.0

c++ - 使用 GCC 编译 Visual Studio 时可能会出现链接器错误

python - 如何在 python 中自动回答"is"?

linux - 是否有可能在 linux 中找到哪个进程正在使用 OPENSSL?

LXC 容器中的 Docker 群

linux - 测量应用程序的 CPU%,我应该推断吗?

linux - 如何在命令中写命令