当前位置:网站首页>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 .
边栏推荐
- Ext file system mechanism principle
- 做软件测试三年,薪资不到20K,今天,我提出了辞职…
- QT: QSS custom qtableview instance
- 进程与线程
- Kotlin's use of the no Arg compiler plug-in in gradle
- Unique in the industry! Fada electronic contract is on the list of 36 krypton hard core technology enterprises
- I have been doing software testing for three years, and my salary is less than 20K. Today, I put forward my resignation
- Overview of testing theory
- Qt:qss custom qmenu instance
- Lecture 1 number field
猜你喜欢
A simple method of adding dividing lines in recyclerview
公司测试部门来了个00后卷王之王,老油条感叹真干不过,但是...
反正切熵(Arctangent entropy):2022.7月最新SCI论文
8年测试工程师总结出来的《测试核心价值》与《0基础转行软件测试超全学习指南》
Tencent micro app to get wechat user information
AMS Series 1 - AMS startup process
Stack, monotone stack, queue, monotone queue
Software testing redis database
Activity and fragment lifecycle
Comment réaliser des tests automatisés pour les tests logiciels embarqués?
随机推荐
Lecture 1 number field
ExecutorException: Statement returned more than one row, where no more than one was expected.
QT: QSS custom qtoolbar and qtoolbox instances
项目管理精华读书笔记(六)
T5 attempt
15 software testing Trends Worthy of attention
What is the salary level of 17k? Let's take a look at the whole interview process of post-95 Test Engineers
解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误
UI自动化测试如何走出困境?价值又如何体现?
可以写进简历的软件测试电商项目,不进来get一下?
如何清理v$rman_backup_job_details视图 报错ORA-02030
2021 reading summary (continuously updating)
我对测试工作的一些认识(资深测试人员总结)
I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it
QT: QSS custom qtabwidget and qtabbar instances
历经一个月,终于拿到金蝶Offer!分享一下四面面经+复习资料
【obs】obs的ini格式的ConfigFile
面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
Hal - General
Communication software development and Application