用交叉编译工具arm-linuc-gcc 3.4.1编译U-boot1.2.0时出现了这样的错误:
lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
lib_arm/_umodsi3.S:79: relocation truncated to fit: R_ARM_PLT32 __div0
在网上找了一下发现有很多这样的问题哦!
主要是“软浮点(soft-float)”问题,解决方法有两种:
1、因为3.4.1是支持硬浮点的,换用3.3.2或2.95.3版本的就OK了!
把3.3.2版本的交缠编译工具链拷贝到/usr/local/arm下
tar解压到当前目录
修改环境变量export PATH:=就可以喽!这方法简单。
2、自己新建一个soft-float交叉编译工具,看起来很麻烦哦!
网上很多,在这里不多说了,给一个链接:http://blog.csdn.net/dengxin123/article/details/2919807