summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/xtensa/crtn.S
blob: a3598da1a5378adea0b5fba5baa8e48cd6d1fc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* glibc's sysdeps/xtensa/elf/initfini.c used for reference [EPILOG] */

	.section .init
#if defined(__XTENSA_WINDOWED_ABI__)
	retw
#elif defined(__XTENSA_CALL0_ABI__)
	l32i	a0, sp, 0
	addi	sp, sp, 16
	ret
#else
#error Unsupported Xtensa ABI
#endif

	.section .fini
#if defined(__XTENSA_WINDOWED_ABI__)
	retw
#elif defined(__XTENSA_CALL0_ABI__)
	l32i	a0, sp, 0
	addi	sp, sp, 16
	ret
#else
#error Unsupported Xtensa ABI
#endif