ARM连接器错误一则
来源:互联网 发布:python自动化工作 编辑:程序博客网 时间:2024/05/17 01:48
ARM连接器错误一则
在用RVCT3.1工作编写ARM程序的时候,出现了一个连接错误:Error: L6915E: Library reports error: scatter-load file declares no heap or stack regions and __user_initial_stackheap is not defined.在网上找了一些资料,原因是使用了自定了的scat文件后,编译器没有没有定义Image$$ZI$$Limit,默认提供的__user_initial_stackheap()函数会用到这个值,此时有两个解决办法:
1.改写scat文件,定义ZI段,并将*(+ZI)数据放入该段.
2.覆盖系统默认提供 的__user_initial_stackheap()函数,比如可以这样做:
/* *默认提供的__user_initial_stackheap()函数会用到Image$$ZI$$Limit这个值, *因为在使用Scat时这个值在默认情况下不被定义,所以要覆盖同名的库函数*/__value_in_regs struct __initial_stackheap __user_initial_stackheap(unsigned i0, unsigned i1, unsigned i2, unsigned i3){ struct __initial_stackheap config; config.heap_base = i1; config.heap_limit = i1; config.stack_base = i1; config.stack_limit = 0; return config;}此外,还要加上#include <rt_misc.h>,连接的时候加上--keep __user_initial_stackheap否则还会提示该函数没有定义.
0 0
- ARM连接器错误一则
- ARM 连接器
- 代码错误一则!
- Oracle11g安装错误一则
- C#引用错误一则
- ORA-24337错误一则
- C/C++生成错误-连接器工具错误
- 连接器
- 一则CTS测试错误分析
- ORA-12520错误解决一则
- arm-linux 编译器与连接器与符号地址
- asp.net调试错误解决一则
- 一则ORA-12500错误的解决案例
- dataguard创建备库错误一则
- AIX挂载NFS的一则经典错误!!!!
- ASM:ORA-15063 错误处理方法一则
- ORA-39083,ORA-02298错误一则
- ORA-39083,ORA-02298错误一则
- sql收缩数据库日志的几种办法
- Android Bluetooth蓝牙开发\蓝牙协议\蓝牙通信例子_Android支持蓝牙4.0版本_BLE开发
- LeetCode——Combination Sum II
- ListView的滚动事件onScrollListener详解
- 二维图像的离散傅立叶变换处理
- ARM连接器错误一则
- Sudoku Solver
- 图表汇集
- 兼容IE的placeholder
- Photoshop制作水晶立体字
- 病毒木马查杀实战第006篇:熊猫烧香之逆向分析(中)
- python进行词性分析
- linux shell scripts:Syntax error: Bad for loop variable
- 积分图像matlab实现(The implementation of integral image by matlab)