]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/arm/crtn.S
de01b38dcfaedbbac8e3610ab0446556013440dd
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / arm / crtn.S
1         .file   "initfini.c"
2         
3 #include <bits/arm_asm.h>
4         .section .init
5         .global _init
6         .type   _init, %function
7 #if defined __thumb__
8         .align  1
9         .thumb
10         @ this will not work on ARMv4T, but lots of stuff
11         @ in here won't work there anyway...
12         pop     {r4-r7, pc}
13 #else
14         .align  2
15         .arm
16         ldmdb   fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
17 #endif
18         .size   _init, .-_init
19         
20         .section .fini
21         .global _fini
22         .type   _fini, %function
23 #if defined __thumb__
24         .align  1
25         .thumb
26         pop     {r4-r7, pc}
27 #else
28         .align  2
29         .arm
30         ldmdb   fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
31 #endif
32         .size   _fini, .-_fini
33         
34         @ In fact this is modified to 3.4.4
35         .ident  "GCC: (GNU) 3.3.2 20031005 (Debian prerelease)"