发博文
个人资料
  • 博客访问:311494
  • 博文数量:197
  • 博客积分:7001
  • 博客等级:少将
  • 关注人气: 1
  • 注册时间:2007-07-11 17:39:26
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
[转]no machine record defined (2008-08-07 19:05)
分类: Kernel

 

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 吧 :)

我的更多文章
亲,您还没有登录,请[登录][注册]后再进行评论