博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

On The Way

一切都在路上, …………
  edwinrong.cublog.cn

关于作者
姓名:Edwin.Rong
职业:嵌入式软件开发工程师
年龄:26
位置:江苏苏州
个性介绍:
I can put color in my life.

I can bloom even in thin soil.

I can look back, but I will still move forward.

I can use my brain and my common sense.

I can turn the TV on and off.

I can because I think I can.

|| << >> ||
我的分类


[转]no machine record defined
 

no machine record defined

編核心時,遇到下面這個問題

arm-9tdmi-linux-gnu-ld: no machine record defined


在 google 查到的都是說將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")


後來自己到 arch/arm/kernel/vmlinux.lds 裡看的時候,才發現別有洞天。原來那兩行的上頭寫著
/*
* 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)
*/
ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")


查了一下所使用的 binutils 版本是 2.15,與 HOST 上的 2.17 比起來確實有點舊了。
所以暫時方向先重新弄一版 crosstool 吧 :)

 原文地址 http://gaznjang.blogspot.com/2008/01/no-machine-record-defined.html
发表于: 2008-08-07,修改于: 2008-08-07 19:05,已浏览936次,有评论0条 推荐 投诉


网友评论
 发表评论