xref: /OK3568_Linux_fs/buildroot/boot/at91bootstrap/at91bootstrap-1.16-eabi-fix.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1When using an EABI toolchain, the default compilation generates
2references to __aeabi_unwind_cpp_pr0(). This symbol is defined in
3libgcc, but we don't want to use it for a bootloader.
4
5Therefore, this patch passes some additional CFLAGS to disable the
6generation of such references by avoiding unwind tables, exceptions,
7etc.
8
9Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10---
11 board/at91cap9adk/dataflash/Makefile      |    2 +-
12 board/at91cap9adk/norflash/Makefile       |    2 +-
13 board/at91cap9stk/nandflash/Makefile      |    2 +-
14 board/at91sam9260ek/dataflash/Makefile    |    2 +-
15 board/at91sam9260ek/nandflash/Makefile    |    2 +-
16 board/at91sam9261ek/dataflash/Makefile    |    2 +-
17 board/at91sam9261ek/nandflash/Makefile    |    2 +-
18 board/at91sam9263ek/dataflash/Makefile    |    2 +-
19 board/at91sam9263ek/nandflash/Makefile    |    2 +-
20 board/at91sam9g10ek/dataflash/Makefile    |    2 +-
21 board/at91sam9g10ek/nandflash/Makefile    |    2 +-
22 board/at91sam9g20ek/dataflash/Makefile    |    2 +-
23 board/at91sam9g20ek/nandflash/Makefile    |    2 +-
24 board/at91sam9g45ekes/nandflash/Makefile  |    2 +-
25 board/at91sam9m10ekes/dataflash/Makefile  |    2 +-
26 board/at91sam9m10ekes/nandflash/Makefile  |    2 +-
27 board/at91sam9m10g45ek/dataflash/Makefile |    2 +-
28 board/at91sam9m10g45ek/nandflash/Makefile |    2 +-
29 board/at91sam9rlek/dataflash/Makefile     |    2 +-
30 board/at91sam9rlek/nandflash/Makefile     |    2 +-
31 board/at91sam9xeek/dataflash/Makefile     |    2 +-
32 board/at91sam9xeek/nandflash/Makefile     |    2 +-
33 lib/Makefile                              |    2 +-
34 23 files changed, 23 insertions(+), 23 deletions(-)
35
36Index: Bootstrap-v1.16/board/at91cap9adk/dataflash/Makefile
37===================================================================
38--- Bootstrap-v1.16.orig/board/at91cap9adk/dataflash/Makefile
39+++ Bootstrap-v1.16/board/at91cap9adk/dataflash/Makefile
40@@ -34,7 +34,7 @@
41 SIZE=$(CROSS_COMPILE)size
42 OBJCOPY=$(CROSS_COMPILE)objcopy
43 OBJDUMP=$(CROSS_COMPILE)objdump
44-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
45+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
46 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
47
48 # Linker flags.
49Index: Bootstrap-v1.16/board/at91cap9adk/norflash/Makefile
50===================================================================
51--- Bootstrap-v1.16.orig/board/at91cap9adk/norflash/Makefile
52+++ Bootstrap-v1.16/board/at91cap9adk/norflash/Makefile
53@@ -34,7 +34,7 @@
54 SIZE=$(CROSS_COMPILE)size
55 OBJCOPY=$(CROSS_COMPILE)objcopy
56 OBJDUMP=$(CROSS_COMPILE)objdump
57-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
58+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
59 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
60
61 # Linker flags.
62Index: Bootstrap-v1.16/board/at91cap9stk/nandflash/Makefile
63===================================================================
64--- Bootstrap-v1.16.orig/board/at91cap9stk/nandflash/Makefile
65+++ Bootstrap-v1.16/board/at91cap9stk/nandflash/Makefile
66@@ -37,7 +37,7 @@
67 SIZE=$(CROSS_COMPILE)size
68 OBJCOPY=$(CROSS_COMPILE)objcopy
69 OBJDUMP=$(CROSS_COMPILE)objdump
70-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL)
71+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
72 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -D$(BOARD) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
73
74
75Index: Bootstrap-v1.16/board/at91sam9260ek/dataflash/Makefile
76===================================================================
77--- Bootstrap-v1.16.orig/board/at91sam9260ek/dataflash/Makefile
78+++ Bootstrap-v1.16/board/at91sam9260ek/dataflash/Makefile
79@@ -37,7 +37,7 @@
80 SIZE=$(CROSS_COMPILE)size
81 OBJCOPY=$(CROSS_COMPILE)objcopy
82 OBJDUMP=$(CROSS_COMPILE)objdump
83-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
84+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
85 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
86
87 # Linker flags.
88Index: Bootstrap-v1.16/board/at91sam9260ek/nandflash/Makefile
89===================================================================
90--- Bootstrap-v1.16.orig/board/at91sam9260ek/nandflash/Makefile
91+++ Bootstrap-v1.16/board/at91sam9260ek/nandflash/Makefile
92@@ -37,7 +37,7 @@
93 SIZE=$(CROSS_COMPILE)size
94 OBJCOPY=$(CROSS_COMPILE)objcopy
95 OBJDUMP=$(CROSS_COMPILE)objdump
96-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
97+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
98 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
99
100 # Linker flags.
101Index: Bootstrap-v1.16/board/at91sam9261ek/dataflash/Makefile
102===================================================================
103--- Bootstrap-v1.16.orig/board/at91sam9261ek/dataflash/Makefile
104+++ Bootstrap-v1.16/board/at91sam9261ek/dataflash/Makefile
105@@ -37,7 +37,7 @@
106 SIZE=$(CROSS_COMPILE)size
107 OBJCOPY=$(CROSS_COMPILE)objcopy
108 OBJDUMP=$(CROSS_COMPILE)objdump
109-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
110+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
111 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
112
113 # Linker flags.
114Index: Bootstrap-v1.16/board/at91sam9261ek/nandflash/Makefile
115===================================================================
116--- Bootstrap-v1.16.orig/board/at91sam9261ek/nandflash/Makefile
117+++ Bootstrap-v1.16/board/at91sam9261ek/nandflash/Makefile
118@@ -37,7 +37,7 @@
119 SIZE=$(CROSS_COMPILE)size
120 OBJCOPY=$(CROSS_COMPILE)objcopy
121 OBJDUMP=$(CROSS_COMPILE)objdump
122-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
123+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
124 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
125
126 # Linker flags.
127Index: Bootstrap-v1.16/board/at91sam9263ek/dataflash/Makefile
128===================================================================
129--- Bootstrap-v1.16.orig/board/at91sam9263ek/dataflash/Makefile
130+++ Bootstrap-v1.16/board/at91sam9263ek/dataflash/Makefile
131@@ -34,7 +34,7 @@
132 SIZE=$(CROSS_COMPILE)size
133 OBJCOPY=$(CROSS_COMPILE)objcopy
134 OBJDUMP=$(CROSS_COMPILE)objdump
135-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
136+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
137 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
138
139 # Linker flags.
140Index: Bootstrap-v1.16/board/at91sam9263ek/nandflash/Makefile
141===================================================================
142--- Bootstrap-v1.16.orig/board/at91sam9263ek/nandflash/Makefile
143+++ Bootstrap-v1.16/board/at91sam9263ek/nandflash/Makefile
144@@ -33,7 +33,7 @@
145 SIZE=$(CROSS_COMPILE)size
146 OBJCOPY=$(CROSS_COMPILE)objcopy
147 OBJDUMP=$(CROSS_COMPILE)objdump
148-CCFLAGS=-g -mcpu=arm9 -O0 -Wall -D$(TARGET) -I$(INCL)
149+CCFLAGS=-g -mcpu=arm9 -O0 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
150 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
151
152 # Linker flags.
153Index: Bootstrap-v1.16/board/at91sam9g10ek/dataflash/Makefile
154===================================================================
155--- Bootstrap-v1.16.orig/board/at91sam9g10ek/dataflash/Makefile
156+++ Bootstrap-v1.16/board/at91sam9g10ek/dataflash/Makefile
157@@ -37,7 +37,7 @@
158 SIZE=$(CROSS_COMPILE)size
159 OBJCOPY=$(CROSS_COMPILE)objcopy
160 OBJDUMP=$(CROSS_COMPILE)objdump
161-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
162+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
163 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
164
165 # Linker flags.
166Index: Bootstrap-v1.16/board/at91sam9g10ek/nandflash/Makefile
167===================================================================
168--- Bootstrap-v1.16.orig/board/at91sam9g10ek/nandflash/Makefile
169+++ Bootstrap-v1.16/board/at91sam9g10ek/nandflash/Makefile
170@@ -37,7 +37,7 @@
171 SIZE=$(CROSS_COMPILE)size
172 OBJCOPY=$(CROSS_COMPILE)objcopy
173 OBJDUMP=$(CROSS_COMPILE)objdump
174-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
175+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
176 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
177
178 # Linker flags.
179Index: Bootstrap-v1.16/board/at91sam9g20ek/dataflash/Makefile
180===================================================================
181--- Bootstrap-v1.16.orig/board/at91sam9g20ek/dataflash/Makefile
182+++ Bootstrap-v1.16/board/at91sam9g20ek/dataflash/Makefile
183@@ -37,7 +37,7 @@
184 SIZE=$(CROSS_COMPILE)size
185 OBJCOPY=$(CROSS_COMPILE)objcopy
186 OBJDUMP=$(CROSS_COMPILE)objdump
187-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
188+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
189 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
190
191 # Linker flags.
192Index: Bootstrap-v1.16/board/at91sam9g20ek/nandflash/Makefile
193===================================================================
194--- Bootstrap-v1.16.orig/board/at91sam9g20ek/nandflash/Makefile
195+++ Bootstrap-v1.16/board/at91sam9g20ek/nandflash/Makefile
196@@ -37,7 +37,7 @@
197 SIZE=$(CROSS_COMPILE)size
198 OBJCOPY=$(CROSS_COMPILE)objcopy
199 OBJDUMP=$(CROSS_COMPILE)objdump
200-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
201+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
202 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
203
204 # Linker flags.
205Index: Bootstrap-v1.16/board/at91sam9g45ekes/nandflash/Makefile
206===================================================================
207--- Bootstrap-v1.16.orig/board/at91sam9g45ekes/nandflash/Makefile
208+++ Bootstrap-v1.16/board/at91sam9g45ekes/nandflash/Makefile
209@@ -37,7 +37,7 @@
210 SIZE=$(CROSS_COMPILE)size
211 OBJCOPY=$(CROSS_COMPILE)objcopy
212 OBJDUMP=$(CROSS_COMPILE)objdump
213-CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
214+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
215 ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
216
217 # Linker flags.
218Index: Bootstrap-v1.16/board/at91sam9m10ekes/dataflash/Makefile
219===================================================================
220--- Bootstrap-v1.16.orig/board/at91sam9m10ekes/dataflash/Makefile
221+++ Bootstrap-v1.16/board/at91sam9m10ekes/dataflash/Makefile
222@@ -37,7 +37,7 @@
223 SIZE=$(CROSS_COMPILE)size
224 OBJCOPY=$(CROSS_COMPILE)objcopy
225 OBJDUMP=$(CROSS_COMPILE)objdump
226-CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
227+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
228 ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
229
230 # Linker flags.
231Index: Bootstrap-v1.16/board/at91sam9m10ekes/nandflash/Makefile
232===================================================================
233--- Bootstrap-v1.16.orig/board/at91sam9m10ekes/nandflash/Makefile
234+++ Bootstrap-v1.16/board/at91sam9m10ekes/nandflash/Makefile
235@@ -37,7 +37,7 @@
236 SIZE=$(CROSS_COMPILE)size
237 OBJCOPY=$(CROSS_COMPILE)objcopy
238 OBJDUMP=$(CROSS_COMPILE)objdump
239-CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
240+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
241 ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
242
243 # Linker flags.
244Index: Bootstrap-v1.16/board/at91sam9m10g45ek/dataflash/Makefile
245===================================================================
246--- Bootstrap-v1.16.orig/board/at91sam9m10g45ek/dataflash/Makefile
247+++ Bootstrap-v1.16/board/at91sam9m10g45ek/dataflash/Makefile
248@@ -37,7 +37,7 @@
249 SIZE=$(CROSS_COMPILE)size
250 OBJCOPY=$(CROSS_COMPILE)objcopy
251 OBJDUMP=$(CROSS_COMPILE)objdump
252-CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
253+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
254 ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
255
256 # Linker flags.
257Index: Bootstrap-v1.16/board/at91sam9m10g45ek/nandflash/Makefile
258===================================================================
259--- Bootstrap-v1.16.orig/board/at91sam9m10g45ek/nandflash/Makefile
260+++ Bootstrap-v1.16/board/at91sam9m10g45ek/nandflash/Makefile
261@@ -37,7 +37,7 @@
262 SIZE=$(CROSS_COMPILE)size
263 OBJCOPY=$(CROSS_COMPILE)objcopy
264 OBJDUMP=$(CROSS_COMPILE)objdump
265-CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL)
266+CCFLAGS=-g -mcpu=arm926ej-s -O2 -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
267 ASFLAGS=-g -mcpu=arm926ej-s -c -O2 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
268
269 # Linker flags.
270Index: Bootstrap-v1.16/board/at91sam9rlek/dataflash/Makefile
271===================================================================
272--- Bootstrap-v1.16.orig/board/at91sam9rlek/dataflash/Makefile
273+++ Bootstrap-v1.16/board/at91sam9rlek/dataflash/Makefile
274@@ -37,7 +37,7 @@
275 SIZE=$(CROSS_COMPILE)size
276 OBJCOPY=$(CROSS_COMPILE)objcopy
277 OBJDUMP=$(CROSS_COMPILE)objdump
278-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
279+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
280 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
281
282 # Linker flags.
283Index: Bootstrap-v1.16/board/at91sam9rlek/nandflash/Makefile
284===================================================================
285--- Bootstrap-v1.16.orig/board/at91sam9rlek/nandflash/Makefile
286+++ Bootstrap-v1.16/board/at91sam9rlek/nandflash/Makefile
287@@ -37,7 +37,7 @@
288 SIZE=$(CROSS_COMPILE)size
289 OBJCOPY=$(CROSS_COMPILE)objcopy
290 OBJDUMP=$(CROSS_COMPILE)objdump
291-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
292+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
293 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
294
295 # Linker flags.
296Index: Bootstrap-v1.16/board/at91sam9xeek/dataflash/Makefile
297===================================================================
298--- Bootstrap-v1.16.orig/board/at91sam9xeek/dataflash/Makefile
299+++ Bootstrap-v1.16/board/at91sam9xeek/dataflash/Makefile
300@@ -38,7 +38,7 @@
301 SIZE=$(CROSS_COMPILE)size
302 OBJCOPY=$(CROSS_COMPILE)objcopy
303 OBJDUMP=$(CROSS_COMPILE)objdump
304-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
305+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
306 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
307
308 # Linker flags.
309Index: Bootstrap-v1.16/board/at91sam9xeek/nandflash/Makefile
310===================================================================
311--- Bootstrap-v1.16.orig/board/at91sam9xeek/nandflash/Makefile
312+++ Bootstrap-v1.16/board/at91sam9xeek/nandflash/Makefile
313@@ -38,7 +38,7 @@
314 SIZE=$(CROSS_COMPILE)size
315 OBJCOPY=$(CROSS_COMPILE)objcopy
316 OBJDUMP=$(CROSS_COMPILE)objdump
317-CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL)
318+CCFLAGS=-g -mcpu=arm9 -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
319 ASFLAGS=-g -mcpu=arm9 -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
320
321 # Linker flags.
322Index: Bootstrap-v1.16/lib/Makefile
323===================================================================
324--- Bootstrap-v1.16.orig/lib/Makefile
325+++ Bootstrap-v1.16/lib/Makefile
326@@ -37,7 +37,7 @@
327 SIZE=$(CROSS_COMPILE)size
328 OBJCOPY=$(CROSS_COMPILE)objcopy
329 OBJDUMP=$(CROSS_COMPILE)objdump
330-CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL)
331+CCFLAGS=-g -mcpu=arm926ej-s -Os -Wall -D$(TARGET) -I$(INCL) -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
332 ASFLAGS=-g -mcpu=arm926ej-s -c -Os -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)
333
334 # Linker flags.
335