glibc: elf 文件 OS ABI 无效 [英] glibc: elf file OS ABI invalid

查看:28
本文介绍了glibc: elf 文件 OS ABI 无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下载并编译 glibc-2.13.当我尝试运行一个执行 malloc() 的示例 C 程序时.我收到以下错误elf 文件 OS ABI 无效

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.

Dave Miller 在 STT_GNU_IFUNC for Sparc 上的博客条目(存档) 以了解 STT_GNU_IFUNC 的作用,如果您愿意的话.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆