about summary refs log tree commit diff
path: root/crt/powerpc64/crtn.s
diff options
context:
space:
mode:
Diffstat (limited to 'crt/powerpc64/crtn.s')
-rw-r--r--crt/powerpc64/crtn.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/crt/powerpc64/crtn.s b/crt/powerpc64/crtn.s
new file mode 100644
index 00000000..a7a9f4a0
--- /dev/null
+++ b/crt/powerpc64/crtn.s
@@ -0,0 +1,13 @@
+.section .init
+.align 2
+	addi 1, 1, 32
+	ld   0, 16(1)
+	mtlr 0
+	blr
+
+.section .fini
+.align 2
+	addi 1, 1, 32
+	ld   0, 16(1)
+	mtlr 0
+	blr