summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/kvx/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/kvx/crti.S')
-rw-r--r--libc/sysdeps/linux/kvx/crti.S31
1 files changed, 31 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/kvx/crti.S b/libc/sysdeps/linux/kvx/crti.S
new file mode 100644
index 000000000..cf5fb2b42
--- /dev/null
+++ b/libc/sysdeps/linux/kvx/crti.S
@@ -0,0 +1,31 @@
+/*
+ * This file is subject to the terms and conditions of the LGPL V2.1
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2018 Kalray Inc.
+ */
+
+ .section .init
+ .align 8
+ .global _init
+ .type _init,@function
+_init:
+ addd $sp = $sp, -32
+ get $r15 = $ra
+ ;;
+ sq 0[$sp] = $r14r15
+ copyd $fp = $sp
+ ;;
+
+ .section .fini
+ .align 8
+ .global _fini
+ .type _fini,@function
+_fini:
+ addd $sp = $sp, -32
+ get $r15 = $ra
+ ;;
+ sq 0[$sp] = $r14r15
+ copyd $fp = $sp
+ ;;