arm-linux-ld: no machine record defined

在編譯內核的過程中遇到這樣的問題:
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)
*/



發佈了186 篇原創文章 · 獲贊 49 · 訪問量 29萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章