From 8219b15a1777c0e698dc97292b92e7b79951b7a0 Mon Sep 17 00:00:00 2001 From: Aneesh V Date: Mon, 5 Dec 2011 16:50:44 +0530 Subject: [PATCH] Add dummy implementation of __aeabi_unwind_cpp_pr0 to prevent compiler errors Courtesy Wolfgang's patch for u-boot: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/78612 Signed-off-by: Aneesh V Signed-off-by: Anand Gadiyar --- lib/Makefile | 2 +- lib/eabi_compat.c | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 lib/eabi_compat.c diff --git a/lib/Makefile b/lib/Makefile index 32b3798..971a123 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -29,7 +29,7 @@ LIB = $(obj)lib$(ARCH).a SOBJS = _udivsi3.o _umodsi3.o -COBJS = board.o ecc.o printf.o div0.o +COBJS = board.o ecc.o printf.o div0.o eabi_compat.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) diff --git a/lib/eabi_compat.c b/lib/eabi_compat.c new file mode 100644 index 0000000..072058b --- /dev/null +++ b/lib/eabi_compat.c @@ -0,0 +1,27 @@ +/* + * (C) Copyright 2011 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +/* Dummy function to avoid linker complaints*/ +void __aeabi_unwind_cpp_pr0(void) +{ +} -- 2.39.2