root/src/system/glue/arch/x86/crtn.S
/*
 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de.
 * Distributed under the terms of the MIT License.
 */

/**     This file contains the final part of the ".init" and ".fini" sections in
 *      the ELF executable. It is tightly connected to crti.S.
 *      Have a look at crti.S to find a description of what happens here.
 */

.section .init
        // the image ID is still on the stack
        movl    %ebp, %esp
        popl    %ebp
        ret

.section .fini
        // the image ID is still on the stack
        movl    %ebp, %esp
        popl    %ebp
        ret