2 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de.
3 * Copyright 2012, Alex Smith, alex@alex-smith.me.uk.
4 * Distributed under the terms of the MIT License.
11 /** This file contains the first part of the ".init" and ".fini" sections in
13 * The functions defined here will be called during initialization/termination
14 * of the loaded executable/library. The ".init" and ".fini" sections are
15 * stacked together like this:
18 * call to _init_before/_term_before
19 * crtbegin.S GCC specific: constructors/destructors are called, ...
21 * crtn.S call to _init_after/_term_after
31 // Preserve image ID for call to __haiku_init_after.
35 call __haiku_init_before
36 // crtbegin.o stuff comes here
44 call __haiku_term_before
45 // crtend.o stuff comes here