about summary refs log tree commit diff
path: root/crt/or1k/crti.s
diff options
context:
space:
mode:
Diffstat (limited to 'crt/or1k/crti.s')
-rw-r--r--crt/or1k/crti.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/crt/or1k/crti.s b/crt/or1k/crti.s
new file mode 100644
index 00000000..7e741459
--- /dev/null
+++ b/crt/or1k/crti.s
@@ -0,0 +1,11 @@
+.section .init
+.global _init
+_init:
+	l.addi	r1,r1,-4
+	l.sw	0(r1),r9
+
+.section .fini
+.global _fini
+_fini:
+	l.addi  r1,r1,-4
+	l.sw    0(r1),r9