连接时出错:(.ARM.exidx 0x0): undefined reference to `__aeabi_unwind_cpp_pr0\'
来源:互联网 发布:千峰php视频教程 下载 编辑:程序博客网 时间:2024/05/10 21:17
编译时加上选项(-nostdlib)
-nostdlib
不连接系统标准启动文件和标准库文件,只把指定的文件传递给连接器。这个选项常用于编译内核、bootloader等程序,它们不需要启动文件、标准库文件。
C语言程序执行的第一条指令。并不是main函数。生成一个C程序的可执行文件时编译器通常会在我们的代码上加上几个被称为启动文件的代crt1.o,crti.o,crtend.o,crtn.o等,他们是
标准库文件。这些代码设置C程序的堆栈等,然后调用main函数。他们依赖于操作系统,在裸板上无法执行,所以我们自己写一个。
所以,我们自己写的*.S汇编文件就是一个启动文件,它设置好堆栈后调用main函数。因此,我们不需要系统自带的启动文件。
韦东山的MMU章节的makefile里面也是有同样的问题,在编译*.c文件的时候加上-nostdlib就可以了。另外根据自己的编译器也有关,低版本的有时不会报错,高版本的反而会报错。
arm-linux-ld 的文件,如果编译时的文件过大,大于指定的链接地址对的话会有重叠的提示,此时可以把调试信息去掉就可以了。
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- 连接时出错:(.ARM.exidx 0x0): undefined reference to `__aeabi_unwind_cpp_pr0\'
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0' .
- 连接时出错(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- 连接时出错,(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- led_on_c.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- (.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
- GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决办法
- 连接时出错,(.ARM.exidx+0x0): undefined
- android make debug : (.ARM.exidx+0x0): error: undefined reference to '__aeabi_unwind_cpp_pr1'
- undefined reference to `__aeabi_unwind_cpp_pr0'
- undefined reference to `__aeabi_unwind_cpp_pr0'
- undefined reference to `__aeabi_unwind_cpp_pr0' 问题解决办法
- undefined reference to `__aeabi_unwind_cpp_pr0' 问题解决办法
- 使用List::unique()代替循环判断
- JS 获取网页源代码 .
- Project Euler 40
- Android动画Animation的使用详解
- getenv
- 连接时出错:(.ARM.exidx 0x0): undefined reference to `__aeabi_unwind_cpp_pr0\'
- Asp.net操作Excel更轻松
- 動的構造
- Java将中文转换为unicode码(用于properties配置文件)
- Highcharts set the min height for (column-stacked-and-grouped) chart.
- strncmp - 函数功能
- WMI应用(一个系统自带的测试WMI语句的工具)
- js贪吃蛇~~~听好玩的游戏,老师带我们做的,
- 提交数据