summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh/crti.S')
-rw-r--r--libc/sysdeps/linux/sh/crti.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh/crti.S b/libc/sysdeps/linux/sh/crti.S
new file mode 100644
index 000000000..f79b6d2cf
--- /dev/null
+++ b/libc/sysdeps/linux/sh/crti.S
@@ -0,0 +1,22 @@
+ .file "crti.S"
+
+ .section .init
+ .align 2
+ .global _init
+ .hidden _init
+ .type _init,@function
+_init:
+ mov.l r14,@-r15
+ sts.l pr,@-r15
+ mov r15,r14
+
+ .section .fini
+ .align 2
+ .global _fini
+ .hidden _fini
+ .type _fini,@function
+_fini:
+ mov.l r14,@-r15
+ sts.l pr,@-r15
+ mov r15,r14
+