chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / arch / s390 / crt0.S
1 #
2 # arch/s390/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         .text
11         .align 4
12         .type _start,@function
13         .globl _start
14 _start:
15         lr      %r2,%r15
16         lhi     %r3,0
17         ahi     %r15,-96
18         bras    %r1,.L0
19 .L0:
20         l       %r1,.L1-.L0(%r1)
21         br      %r1
22 .L1:
23         .long   __libc_init
24
25         .size _start,.-_start