riscv64: fix linking with binutils 2.40
[uclibc-ng.git] / libc / sysdeps / linux / cris / crtn.S
blob7b2dce17cd8e6850fc8c120875f2198ecede034b
1 /* glibc's sysdeps/cris/elf/initfini.c used for reference [EPILOG] */
3         .section        .init
4         .align  1
5         .global _init
6         .type   _init, @function
7         move.d  [$sp+],$r0
8         move    $r1,$srp
9         move.d  [$sp+],$r1
10         Ret
11         nop
13         .section        .fini
14         .align  1
15         .global _fini
16         .type   _fini, @function
17         move.d  [$sp+],$r0
18         move    $r1,$srp
19         move.d  [$sp+],$r1
20         Ret
21         nop