summaryrefslogtreecommitdiff
path: root/packages/u-boot/u-boot-git/uboot-eabi-fix-HACK2.patch
blob: 858296b980ace4414ea59de91d8fec9092a956c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Index: git/lib_arm/div0.c
===================================================================
--- git.orig/lib_arm/div0.c
+++ git/lib_arm/div0.c
@@ -22,9 +22,3 @@
  */
 
 /* Replacement (=dummy) for GNU/Linux division-by zero handler */
-void __div0 (void)
-{
-	extern void hang (void);
-
-	hang();
-}
Index: git/Makefile
===================================================================
--- git.orig/Makefile
+++ git/Makefile
@@ -225,7 +225,7 @@ LIBS := $(addprefix $(obj),$(LIBS))
 .PHONY : $(LIBS)
 
 # Add GCC lib
-PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
+PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lgcc_eh
 
 # The "tools" are needed early, so put this first
 # Don't include stuff already done in $(LIBS)
--- git/board/akita/akita.c.orig        2007-12-26 17:52:33.000000000 +0000
+++ git/board/akita/akita.c     2007-12-26 17:52:59.000000000 +0000
@@ -87,3 +87,7 @@
 
        return 0;
 }
+
+void raise() {}
+
+void abort() {}
--- git/board/corgi/corgi.c.orig        2007-12-26 17:52:33.000000000 +0000
+++ git/board/corgi/corgi.c     2007-12-26 17:52:59.000000000 +0000
@@ -87,3 +87,7 @@
 
        return 0;
 }
+
+void raise() {}
+
+void abort() {}
Index: git/lib_arm/div0.c
===================================================================
--- git.orig/lib_arm/div0.c
+++ git/lib_arm/div0.c
@@ -22,9 +22,3 @@
  */
 
 /* Replacement (=dummy) for GNU/Linux division-by zero handler */
-void __div0 (void)
-{
-	extern void hang (void);
-
-	hang();
-}
Index: git/Makefile
===================================================================
--- git.orig/Makefile
+++ git/Makefile
@@ -225,7 +225,7 @@ LIBS := $(addprefix $(obj),$(LIBS))
 .PHONY : $(LIBS)
 
 # Add GCC lib
-PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
+PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lgcc_eh
 
 # The "tools" are needed early, so put this first
 # Don't include stuff already done in $(LIBS)
--- git/board/akita/akita.c.orig        2007-12-26 17:52:33.000000000 +0000
+++ git/board/akita/akita.c     2007-12-26 17:52:59.000000000 +0000
@@ -87,3 +87,7 @@
 
        return 0;
 }
+
+void raise() {}
+
+void abort() {}
--- git/board/corgi/corgi.c.orig        2007-12-26 17:52:33.000000000 +0000
+++ git/board/corgi/corgi.c     2007-12-26 17:52:59.000000000 +0000
@@ -87,3 +87,7 @@
 
        return 0;
 }
+
+void raise() {}
+
+void abort() {}