Linux内核编译错误elf_x86_64丢失 [英] Linux kernel compile error elf_x86_64 missing

查看:356
本文介绍了Linux内核编译错误elf_x86_64丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用具有3.11内核的Ubuntu Linux 12.04.

I'm using Ubuntu Linux 12.04 with the 3.11 kernel.

对于我的工作,我必须修补内核以使其具有实时功能.

For my work I have to patch the kernel to make it realtime able.

所以我下载了带有补丁的Linux 2.6.31.6内核,并试图对其进行补丁,编译和安装.

So I downloaded the Linux 2.6.31.6 kernel with the patch and tried to patch, compile and instal it.

当我尝试编译它时,会出现此错误:

While I try to compile it there comes this error:

CC      arch/x86/vdso/vgetcpu.o
CC      arch/x86/vdso/vvar.o
VDSO    arch/x86/vdso/vdso.so.dbg

gcc: Error: elf_x86_64: File or directory not found
make[2]: *** [arch/x86/vdso/vdso.so.dbg] Error 1
make[1]: *** [arch/x86/vdso] Error 2
make: *** [arch/x86] Error 2

对于RT 2.6 ...内核的编译,我使用与3.11相同的配置文件(当然有一些编辑要点),并且查看了/arch/x86/vdso目录和vdso.so.dbg文件丢失了(我不知道从哪里得到).

For the compilation of the RT 2.6... kernel I use the same configfile like the 3.11 (with some edited points of course) and I looked into the /arch/x86/vdso directory and the vdso.so.dbg file is missing (and I don't know where to get it).

希望您能为我提供帮助,如果您需要更多信息,我会尽力提供.

I hope you can help me and if you need some further informations I will try to provide them.

您真诚的 阿德里安

推荐答案

我在arch/x86/vdso/Makefile

VDSO_LDFLAGS_vdso.lds = -m elf_x86_64 [...]
...
VDSO_LDFLAGS_vdso32.lds = -m elf_x86 [...]

VDSO_LDFLAGS_vdso.lds = -m64 [...]
...
VDSO_LDFLAGS_vdso32.lds = -m32 [...]

这篇关于Linux内核编译错误elf_x86_64丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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