The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame^] | 1 | .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 |