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