summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/xtensa/crti.S
blob: 43e66e30820baa0fa07f6e4dd23d66f13a04eed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* glibc's sysdeps/xtensa/elf/initfini.c used for reference [PROLOG] */

	.section .init
	.align	4
	.global	_init
	.hidden _init
	.type	_init, @function
_init:
#if defined(__XTENSA_WINDOWED_ABI__)
	entry	sp, 48
#elif defined(__XTENSA_CALL0_ABI__)
	addi	sp, sp, -16
	s32i	a0, sp, 0
#else
#error Unsupported Xtensa ABI
#endif

	.section .fini
	.align	4
	.global	_fini
	.hidden _fini
	.type	_fini, @function
_fini:
#if defined(__XTENSA_WINDOWED_ABI__)
	entry	sp, 48
#elif defined(__XTENSA_CALL0_ABI__)
	addi	sp, sp, -16
	s32i	a0, sp, 0
#else
#error Unsupported Xtensa ABI
#endif