xref: /haiku/src/system/glue/arch/m68k/crtn.S (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1/*
2 * Copyright 2005, 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 and program args are still on the stack
13	jsr	_init_after
14	rts
15
16.section .fini
17	// the image ID and program args are still on the stack
18	jsr	_term_after
19	rts
20