chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / arch / ppc64 / crt0.S
1 #
2 # arch/ppc64/crt0.S
3 #
4 # void _start(void)
5 # {
6 #    /* Divine up argc, argv, and envp */
7 #    environ = envp;
8 #    exit(main(argc, argv, envp));
9 # } 
10 #
11
12         .section ".toc","aw"
13 .LC0:   .tc     environ[TC],environ
14
15         .section ".opd","aw"
16         .align 3
17         .globl _start
18 _start:
19         .quad   ._start
20         .quad   .TOC.@tocbase, 0
21
22         .text
23         .globl  ._start
24         .type   ._start,@function
25 ._start:
26         stdu    %r1,-32(%r1)
27         addi    %r3,%r1,32
28         mr      %r4,%r7     /* fini */
29         b       .__libc_init
30         nop
31
32         .size _start,.-_start