当前位置:网站首页>Solve undefined reference to`__ aeabi_ Uidivmod 'and undefined reference to`__ aeabi_ Uidiv 'error
Solve undefined reference to`__ aeabi_ Uidivmod 'and undefined reference to`__ aeabi_ Uidiv 'error
2022-07-03 11:15:00 【smartvxworks】
Write your own bare metal driver , Division is used , The following error occurred when linking :

The compiler used is :

Later, I searched the Internet for the reason , Because the compiler does not support division , But no solution was found . After looking at the code, it is really practical to divide , Remove the division and connect normally . Then I thought about it , Before compiling the kernel and compiling u_boot It's all from this compiler , They must have division , How they do it ?
So I took a look u_boot Of Makefile, I feel dizzy , There are so many things , Later, I compiled it , See this :

u_boot At link time , Specifies the path and... Of the yellow color -lgcc Options (-l Next is the name of the link library )
Go to the specified directory and see the following :

There's a libgcc.a Static library , The compiler supports soft floating point , Guess the implementation of soft floating point should be looking for a static library .
In their own Makefile These things are added to it , Continue to compile the connection, and the following error message appears :

The lack of "raise Symbol ", stay u_boot Search in source code "raise" as follows :

It's a function , Nothing , I wrote such an empty function in my code , Compile and pass .
Makefile as follows :

summary :
ARMv4t Of ARM The core does not support floating-point operations , In order to support floating-point operation , The compiler uses the soft floating-point method , But the corresponding division library support is required , When connecting, you need to specify its path and library name .
A classic saying : stay IT industry , Have a problem , As long as it is solved all the time , One day it will be solved .
边栏推荐
- AMS Series 1 - AMS startup process
- VPP三层网络互联配置
- QT: QSS custom qtoolbutton instance
- 反正切熵(Arctangent entropy):2022.7月最新SCI论文
- 如何:配置 ClickOnce 信任提示行为
- Stack, monotone stack, queue, monotone queue
- Qt:qss custom qscrollbar instance
- 搭建ADG后,实例2无法启动 ORA-29760: instance_number parameter not specified
- Software testing (test case) writing: vulgar, native and skillful
- (二)进制
猜你喜欢

进程与线程

QT: QSS custom qtreeview instance

Tencent micro app to get wechat user information

Error installing the specified version of pilot

8年测试工程师总结出来的《测试核心价值》与《0基础转行软件测试超全学习指南》

做软件测试三年,薪资不到20K,今天,我提出了辞职…

高精度室内定位技术,在智慧工厂安全管理的应用

Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)
![[proteus simulation] 16 channel water lamp composed of 74hc154 four wire to 12 wire decoder](/img/1f/729594930c7c97d3e731987f4c3645.png)
[proteus simulation] 16 channel water lamp composed of 74hc154 four wire to 12 wire decoder

The highest monthly salary of 18K has a good "mentality and choice", and success is poor "seriousness and persistence"~
随机推荐
嵌入式軟件測試怎麼實現自動化測試?
Imread change image display size
AMS Series 1 - AMS startup process
解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误
Analysis of JMM memory model
AIDL
Test what the leader should do
在腾讯云容器服务Node上执行 kubectl
如何清理v$rman_backup_job_details视图 报错ORA-02030
大厂技术专家:工程师如何提升沟通能力?
栈,单调栈,队列,单调队列
如何成为一名高级数字 IC 设计工程师(1-5)Verilog 编码语法篇:操作数
(二)进制
历经一个月,终于拿到金蝶Offer!分享一下四面面经+复习资料
Hal - General
帝国cms 无缩略图 灵动标签(e:loop)判断有无标题图片(titlepic)的两种写法
面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
ConstraintLayout跟RelativeLayout嵌套出现的莫名奇妙的问题
Project management essence reading notes (6)
面试题总结(2) IO模型,集合,NIO 原理,缓存穿透,击穿雪崩