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)

具体如下图所示:
在这里插入图片描述

发布了89 篇原创文章 · 获赞 53 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/u010632165/article/details/94402146