vfs: check userland buffers before reading them.
[haiku.git] / src / system / glue / arch / arm / crti.S
blob337c772ec211d83e05eb6c856203ffff55b4919e
1 /*
2  * Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
6 /**     This file contains the first part of the ".init" and ".fini" sections in
7  *      the ELF executable.
8  *      The functions defined here will be called during initialization/termination
9  *      of the loaded executable/library. The ".init" and ".fini" sections are
10  *      stacked together like this:
11  *
12  *      crti.S          entry point
13  *                              call to _init_before/_term_before
14  *      crtbegin.S      GCC specific: constructors/destructors are called, ...
15  *      crtend.S
16  *      crtn.S          call to _init_after/_term_after
17  *                              exit
18  */
20 #define FUNCTION(x) .global x; .type x,%function; x
22 .section .init
23 FUNCTION(_init):
24         bl      __haiku_init_before
25         // crtbegin.o stuff comes here
27 .section .fini
28 FUNCTION(_fini):
29         bl      __haiku_term_before
30         // crtbegin.o stuff comes here