我用C语言编写了一个非常简单的程序hello。当我在exe文件中使用ld时,返回了以下内容:
ld: error in hello(.eh_frame); no .eh_frame_hdr table will be created.
我没有定义任何LD_LIBRARY_PATH
或者/etc/ld.so.conf
中的路径。我尝试使用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版本是(Debian4.7.2-5)。