summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/or1k/crtn.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/or1k/crtn.S')
-rw-r--r--libc/sysdeps/linux/or1k/crtn.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/or1k/crtn.S b/libc/sysdeps/linux/or1k/crtn.S
new file mode 100644
index 000000000..b3e8688ef
--- /dev/null
+++ b/libc/sysdeps/linux/or1k/crtn.S
@@ -0,0 +1,9 @@
+ .section .init
+ l.lwz r9,0(r1)
+ l.jr r9
+ l.addi r1,r1,4
+
+ .section .fini
+ l.lwz r9,0(r1)
+ l.jr r9
+ l.addi r1,r1,4