1/* 2 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6/** This file contains the final part of the ".init" and ".fini" sections in 7 * the ELF executable. It is tightly connected to crti.S. 8 * Have a look at crti.S to find a description of what happens here. 9 */ 10 11.section .init 12 // the image ID is still on the stack 13 call _init_after 14 movl %ebp, %esp 15 popl %ebp 16 ret 17 18.section .fini 19 // the image ID is still on the stack 20 call _term_after 21 movl %ebp, %esp 22 popl %ebp 23 ret 24