chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / arch / cris / crt0.S
1 #
2 # arch/cris/crt0.S
3 #
4 # Does arch-specific initialization and invokes __libc_init
5 # with the appropriate arguments.
6 #
7 # See __static_init.c or __shared_init.c for the expected
8 # arguments.
9 #
10
11         .text
12         .balign 4
13         .type   _start,@function
14         .globl  _start
15 _start:
16         /* Save the address of the ELF argument array */
17         move.d  $sp,$r10        /* Address of ELF arguments */
18
19         /* atexit() function (assume null) */
20         moveq   0,$r11
21         
22         /* Set up a dummy stack frame to keep gcc from getting confused */
23         push    $r11
24         push    $r11
25         jump    __libc_init
26
27         .size _start, .-_start
28