u-boot: Not enough room for program headers, try linking with -N
在编译u-boot
的时候出现了以下错误:
arm-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N
arm-linux-gnueabi-ld.bfd: final link failed: Bad value
Makefile:1208: recipe for target 'u-boot' failed
解决方案可以参考这个patch;
或者在Makefile
中添加一条语句,修改链接参数
FLAGS_u-boot += $(call lmZ-option, --no-dynamic-linker)
具体如下图所示: