1 Get at91dataflashboot to build with EABI toolchains, by providing the
2 __aeabi_uidiv and __aeabi_uidivmod symbols. The code is based on
5 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 _udivsi3.S | 14 ++++++++++++++
8 1 file changed, 14 insertions(+)
10 Index: DataflashBoot-1.05/_udivsi3.S
11 ===================================================================
12 --- DataflashBoot-1.05.orig/_udivsi3.S
13 +++ DataflashBoot-1.05/_udivsi3.S
17 .type __udivsi3 ,function
18 + .globl __aeabi_uidiv
19 + .type __aeabi_uidiv ,function
27 mov r0, #0 @ about as wrong as it could be
29 .size __udivsi3 , . - __udivsi3
31 +.globl __aeabi_uidivmod
34 + stmfd sp!, {r0, r1, ip, lr}
36 + ldmfd sp!, {r1, r2, ip, lr}
41 /* # 235 "libgcc1.S" */
42 /* # 320 "libgcc1.S" */
43 /* # 421 "libgcc1.S" */