blob: 8f468e6b6b10ff6d346622c8016ee1762788fe15 [file] [log] [blame]
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -07001.text
2.align 4
3.type _start, @function
4.globl _start
5
6_start:
7 /* save the elfdata ptr to %eax, AND push it onto the stack */
8 mov %esp, %eax
9 pushl %esp
10
11 pushl %eax
12 call __linker_init
13
14 /* linker init returns (%eax) the _entry address in the main image */
15 /* entry point expects sp to point to elfdata */
16 popl %esp
17 jmp *%eax
18
19.section .ctors, "wa"
20.globl __CTOR_LIST__
21
22__CTOR_LIST__:
23 .long -1