riscv64: fix linking with binutils 2.40
[uclibc-ng.git] / libc / sysdeps / linux / microblaze / crti.S
blobe003968973e4610e6b3194c0f23c775d1cbe6fbb
1 /*
2  * libc/sysdeps/linux/microblaze/crti.S -- init/fini entry code for microblaze
3  *                                         (baselined with gcc 4.1.2)
4  *
5  *  Copyright (C) 2010       Digital Design Corporation
6  *
7  * This file is subject to the terms and conditions of the GNU Lesser
8  * General Public License.  See the file COPYING.LIB in the main
9  * directory of this archive for more details.
10  */
12 #define END_INIT
13 #define END_FINI
14 #define ALIGN
15 #include <libc-symbols.h>
17 /*@HEADER_ENDS*/
19         .section .init
20         .align  2
21         .globl  _init
22 _init:
23         addik   r1, r1, -32
24         swi     r19, r1, 28
25         addk    r19, r1, r0
26         swi     r15, r1, 0
28         ALIGN
29         END_INIT
31         .section .fini
32         .align  2
33         .globl  _fini
34 _fini:
35         addik   r1, r1, -32
36         swi     r19, r1, 28
37         addk    r19, r1, r0
38         swi     r15, r1, 0
40         ALIGN
41         END_FINI