xref: /haiku/src/system/glue/arch/riscv64/crtn.S (revision 4a6c01c33ff4047f13ced25cdf20b766106cb40a)
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	ld   ra, 8(sp)
13	addi sp, sp, 16
14	ret
15
16
17.section .fini
18	ld   ra, 8(sp)
19	addi sp, sp, 16
20	ret
21