码迷,mamicode.com
首页 > Windows程序 > 详细

GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决办法

时间:2015-08-21 00:09:31      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:

/opt/arm-2010.09/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/armv4t/libgcc.a(_bswapsi2.o):(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0‘
make: *** [u-boot] Error 1

一旦编译uboot出现上述错误,请不要慌张!解决办法官网已经给出,主要解决办法如下:

vim 打开./lib_arm/eabi_compat.c(具体的位置根据自己的情况而定)并添加如下空函数即可解决:

/* Dummy function to avoid linker complaints */

void __aeabi_unwind_cpp_pr0(void)

{

};

 

以下为官网原内容:

[U-Boot] [PATCH] ARM: add __aeabi_unwind_cpp_pr0() function to avoid linker complaints

Wolfgang Denk     wd at denx.de       
Mon May 10 23:08:02 CEST 2010    


Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 arch/arm/lib/eabi_compat.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c
index 86eacf1..eb3e26d 100644
--- a/arch/arm/lib/eabi_compat.c
+++ b/arch/arm/lib/eabi_compat.c
@@ -16,3 +16,8 @@ int raise (int signum)
 	printf("raise: Signal # %d caught\n", signum);
 	return 0;
 }
+
+/* Dummy function to avoid linker complaints */
+void __aeabi_unwind_cpp_pr0(void)
+{
+};
-- 
1.6.6.1

版权声明:本文为博主原创文章,未经博主允许不得转载。

GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决办法

标签:

原文地址:http://blog.csdn.net/dddxxxx/article/details/47819809

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!