]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/cris/crti.S
Inital import
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / cris / crti.S
1 /* glibc's sysdeps/cris/elf/initfini.c used for reference [PROLOG] */
2
3         .section        .init
4         .align  1
5         .global _init
6         .type   _init, @function
7 _init:
8         subq    4,$sp
9         move.d  $r1,[$sp]
10         move    $srp,$r1
11         subq    4,$sp
12         move.d  $r0,[$sp]
13 #ifdef __arch_v32
14         lapc    _GLOBAL_OFFSET_TABLE_,$r0
15 #else
16         move.d  $pc,$r0
17         sub.d   .:GOTOFF,$r0
18 #endif
19         .align  1
20
21         .section        .fini
22         .align  1
23         .global _fini
24         .type   _fini, @function
25 _fini:
26         subq    4,$sp
27         move.d  $r1,[$sp]
28         move    $srp,$r1
29         subq    4,$sp
30         move.d  $r0,[$sp]
31 #ifdef __arch_v32
32         lapc    _GLOBAL_OFFSET_TABLE_,$r0
33 #else
34         move.d  $pc,$r0
35         sub.d   .:GOTOFF,$r0
36 #endif
37         .align  1