at91bootstrap-1.16-eabi-fix.patch 16 KB

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