begin.S revision a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349
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
24