chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / arch / x86_64 / crt0.S
1 #
2 # arch/x86_64/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         .align 4
13         .type _start,@function
14         .globl _start
15 _start:
16         movq %rsp,%rdi                  # Offset of the ELF data structure
17         movq %rdx,%rsi                  # The atexit() pointer (if any)
18         call __libc_init
19         # We should never get here...
20         hlt
21                 
22         .size _start,.-_start