support div

13 篇文章 0 订阅
裸版支持除法

报错:

: undefined reference to `__floatsidf'
lcd/s3c2440_lcd_controller.o(.text+0xd0): In function `s3c2440_lcd_controller_init':
: undefined reference to `__divdf3'
lcd/s3c2440_lcd_controller.o(.text+0xec): In function `s3c2440_lcd_controller_init':
: undefined reference to `__divdf3'
lcd/s3c2440_lcd_controller.o(.text+0x108): In function `s3c2440_lcd_controller_init':
: undefined reference to `__subdf3'
lcd/s3c2440_lcd_controller.o(.text+0x124): In function `s3c2440_lcd_controller_init':
: undefined reference to `__adddf3'
lcd/s3c2440_lcd_controller.o(.text+0x138): In function `s3c2440_lcd_controller_init':
: undefined reference to `__fixdfsi'
adc_tsc/adc_test.o(.text+0x30): In function `adc_test':
: undefined reference to `__floatsidf'
adc_tsc/adc_test.o(.text+0x4c): In function `adc_test':
: undefined reference to `__divdf3'

解决:
1,去uboot中查找
2, 去kernel中查找
3, 去lib库查找:
进入工具链目录grep “_floatsisf” * -nR
找到对应的静态库:libc.a libm.a libgcc.a
拷贝到编译目录,修改makefile,分别添加.a后编译.
发现只有libgcc.a可以编译通过,说明除法实现在libgcc中.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值