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