glibc:elf文件OS ABI无效 [英] glibc: elf file OS ABI invalid
问题描述
下载并编译了glibc-2.13.当我尝试运行执行malloc()的示例C程序时.我收到以下错误
elf file OS ABI invalid
downloaded and compiled glibc-2.13. when i try to run a sample C program which does a malloc(). I get following error
elf file OS ABI invalid
任何人都可以通过我的任何指针来解决此问题.请注意,我的内核版本是linux-2.6.35.9
Can anybody please pass my any pointer helpful in resolving this issue.Please note that my kernel version is linux-2.6.35.9
推荐答案
问题不是您的内核版本.
It's not your kernel version that's the problem.
您系统上的加载程序不支持新的Linux
ABI.直到最近,Linux ELF二进制文件仍使用System V
ABI.最近,为了支持STT_GNU_IFUNC,添加了Linux
ABI.您必须更新系统 C库以具有支持STT_GNU_IFUNC的加载程序,然后它还将识别具有Linux
ABI类型的ELF对象.
The loader on your system does not support the new Linux
ABI. Until relatively recently, Linux ELF binaries used the System V
ABI. Recently, in support of STT_GNU_IFUNC, the Linux
ABI was added. You would have to update your system C library to have a loader that support STT_GNU_IFUNC, and then it will also recognize ELF objects with the Linux
ABI type.
See Dave Miller's blog entry on STT_GNU_IFUNC for Sparc (archived) to gain an understanding of what STT_GNU_IFUNC does, if you care.
这篇关于glibc:elf文件OS ABI无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!