blob: d9e1397da05e322657daf11094c75ac354e9f5fe [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* glibc's sysdeps/cris/elf/initfini.c used for reference [PROLOG] */
2
3 .section .init
4 .align 1
5 .global _init
6 .type _init, @function
7_init:
8 subq 4,$sp
9 move.d $r1,[$sp]
10 move $srp,$r1
11 subq 4,$sp
12 move.d $r0,[$sp]
13#ifdef __arch_v32
14 lapc _GLOBAL_OFFSET_TABLE_,$r0
15#else
16 move.d $pc,$r0
17 sub.d .:GOTOFF,$r0
18#endif
19 .align 1
20
21 .section .fini
22 .align 1
23 .global _fini
24 .type _fini, @function
25_fini:
26 subq 4,$sp
27 move.d $r1,[$sp]
28 move $srp,$r1
29 subq 4,$sp
30 move.d $r0,[$sp]
31#ifdef __arch_v32
32 lapc _GLOBAL_OFFSET_TABLE_,$r0
33#else
34 move.d $pc,$r0
35 sub.d .:GOTOFF,$r0
36#endif
37 .align 1