1 When using an EABI toolchain, the default compilation generates
2 references to __aeabi_unwind_cpp_pr0(). This symbol is defined in
3 libgcc, but we don't want to use it for a bootloader.
5 Therefore, this patch passes some additional CFLAGS to disable the
6 generation of such references by avoiding unwind tables, exceptions,
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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 +-
34 23 files changed, 23 insertions(+), 23 deletions(-)
36 Index: 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
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)
49 Index: 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
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)
62 Index: 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
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)
75 Index: 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
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)
88 Index: 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
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)
101 Index: 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
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)
114 Index: 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
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)
127 Index: 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
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)
140 Index: 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
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)
153 Index: 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
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)
166 Index: 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
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)
179 Index: 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
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)
192 Index: 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
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)
205 Index: 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
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)
218 Index: 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
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)
231 Index: 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
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)
244 Index: 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
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)
257 Index: 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
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)
270 Index: 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
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)
283 Index: 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
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)
296 Index: 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
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)
309 Index: 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
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)
322 Index: Bootstrap-v1.16/lib/Makefile
323 ===================================================================
324 --- Bootstrap-v1.16.orig/lib/Makefile
325 +++ Bootstrap-v1.16/lib/Makefile
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)