summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/crti.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/crti.S')
-rw-r--r--libc/sysdeps/linux/powerpc/crti.S31
1 files changed, 31 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/powerpc/crti.S b/libc/sysdeps/linux/powerpc/crti.S
new file mode 100644
index 000000000..491642496
--- /dev/null
+++ b/libc/sysdeps/linux/powerpc/crti.S
@@ -0,0 +1,31 @@
+ .file "initfini.c"
+#APP
+
+ .section .init
+#NO_APP
+ .align 2
+ .globl _init
+ .type _init, @function
+_init:
+ stwu 1,-32(1)
+ mflr 0
+ stw 0,36(1)
+#APP
+
+ .align 2
+
+
+ .section .fini
+#NO_APP
+ .align 2
+ .globl _fini
+ .type _fini, @function
+_fini:
+ stwu 1,-32(1)
+ mflr 0
+ stw 0,36(1)
+#APP
+ .align 2
+
+
+ .ident "GCC: (GNU) 3.3.1 20030626 (Debian prerelease)"