diff options
Diffstat (limited to 'libc/arch-x86/bionic/crtbegin_so.S')
-rw-r--r-- | libc/arch-x86/bionic/crtbegin_so.S | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libc/arch-x86/bionic/crtbegin_so.S b/libc/arch-x86/bionic/crtbegin_so.S new file mode 100644 index 0000000..d49e9df --- /dev/null +++ b/libc/arch-x86/bionic/crtbegin_so.S @@ -0,0 +1,29 @@ +/* we put the _init() function here in case the user files for the shared + * libs want to drop things into .init section. + * We then will call our ctors from crtend_so.o */ +.section .init +.align 4 +.type _init, @function +.globl _init +_init: + +.section .init_array, "aw" +.align 4 +.type __INIT_ARRAY__, @object +.globl __INIT_ARRAY__ +__INIT_ARRAY__: + .long -1 + +.section .fini_array, "aw" +.align 4 +.type __FINI_ARRAY__, @object +.globl __FINI_ARRAY__ +__FINI_ARRAY__: + .long -1 + +.section .ctors, "aw" +.align 4 +.type __CTOR_LIST__, @object +.globl __CTOR_LIST__ +__CTOR_LIST__: + .long -1 |