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
32
33
34
35
36
37
38
39
|
/* 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
#ifdef __FDPIC__
s32i a12, sp, 4
mov a12, a11
#endif
#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
#ifdef __FDPIC__
s32i a12, sp, 4
mov a12, a11
#endif
#else
#error Unsupported Xtensa ABI
#endif
|