uboot_1.1.6学习1_undefined reference to "raise"

在尝试将uboot 1.1.6移植到JZ2440平台时,遇到了arm-linux-gcc 4.3.2编译错误,具体表现为'undefined reference to "raise"'。解决这个问题的方法是在cpu/arm920t/config.mk中添加特定的编译选项,并修改uboot根目录Makefile中的PLATFORM_LIBS,以链接正确的库路径。按照提供的链接中的详细步骤操作后,编译可以成功通过。
摘要由CSDN通过智能技术生成

编译环境:

JZ2440移植的uboot1.1.6,arm-linux-gcc版本4.3.2

 

编译报错:

...
arm-linux-ld: failed to merge target specific data of file drivers/nand/libnand.a(nand_util.o)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_dvmd_lnx.o): In function `__aeabi_ldiv0':
(.text+0x8): undefined reference to `raise'
make: *** [u-boot] 错误 1

解决办法:

http://blog.csdn.net/wwd574000815/article/details/6208379

将cpu /arm920t/config.mk 改为

PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 /
    -msoft-float

PLATFORM_CPPFLAGS +=

# =========

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值