chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[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         ld      3,0(1)
27         ld      4,8(1)
28         ld      5,16(1)
29         li      0,0
30         stdu    0,-64(1)
31         ld      9,.LC0@toc(2)
32         std     5,0(9)
33         bl      .main
34         nop
35         bl      .exit
36         nop
37
38         .size _start,.-_start