u-boot version :2010.12
arm-linux-gcc version:4.5.1
problem :.....uses hardware FP whereas u-boot uses software FP...........
analysis
:This error message means gcc uses hardware method in FP(Floating Point)
while u-boot uses software.
solution :vi cpu/s3c64xx/config.mk //要视具体情况
change PLATFORM_RELFLAGS+=-fno-common -ffixed-r8 -msoft-float
into
change PLATFORM_RELFLAGS+=-fno-common -ffixed-r8 //让编译器自动选
本文分析了U-Boot版本2010.12与arm-linux-gcc版本4.5.1在浮点运算处理上的不一致问题。主要矛盾在于U-Boot使用软件浮点运算,而GCC默认采用硬件浮点运算。解决方案涉及修改配置文件config.mk中的编译选项,以确保GCC与U-Boot保持一致。
848

被折叠的 条评论
为什么被折叠?



