您的位置:首页 > 运维架构 > Linux

arm-linux-ld: no machine record defined

2015-05-18 11:25 274 查看
在编译内核的过程中遇到这样的问题:

arm-linux-ld: no machine record defined
详细见截图:



经过在网上查询说解决放放如下:
修改:arch/arm/kernel/vmlinux.lds文件的最后部分:



注释掉上图中的

ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")

ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")
具体可以看到上面的注释:

/*

* These must never be empty

* If you have to comment these two assert statements out, your

* binutils is too old (for other reasons as well)

*/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息