chiark / gitweb /
[PATCH] update klibc to 0.194
[elogind.git] / klibc / klibc / arch / m32r / crt0.S
1 #
2 # arch/m32r/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         mv      r0, sp
18
19         /* atexit() function (assume null) */
20         xor     r1, r1
21         
22         bl      __libc_init
23
24         .size _start, .-_start
25