Add dummy implementation of __aeabi_unwind_cpp_pr0 to prevent compiler errors
authorAneesh V <aneesh@ti.com>
Mon, 5 Dec 2011 11:20:44 +0000 (16:50 +0530)
committerAnand Gadiyar <gadiyar@ti.com>
Mon, 5 Dec 2011 11:20:44 +0000 (16:50 +0530)
Courtesy Wolfgang's patch for u-boot:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/78612

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
lib/Makefile
lib/eabi_compat.c [new file with mode: 0644]

index 32b3798..971a123 100644 (file)
@@ -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 (file)
index 0000000..072058b
--- /dev/null
@@ -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)
+{
+}