summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/mips/crti.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-05 01:44:16 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-05 01:44:16 +0000
commit53d9845ae7cc45776bb1d084ccf54ae58186ff5c (patch)
tree0fbcf1d38fb348339311418e08b103ef0dcf4ab4 /libc/sysdeps/linux/mips/crti.S
parentb09209baf021713ef92767b90a73124f857e7c2a (diff)
Continue the conversion to using per-arch crti.S and crtn.S
Diffstat (limited to 'libc/sysdeps/linux/mips/crti.S')
-rw-r--r--libc/sysdeps/linux/mips/crti.S50
1 files changed, 50 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/crti.S b/libc/sysdeps/linux/mips/crti.S
new file mode 100644
index 000000000..b0d523b2f
--- /dev/null
+++ b/libc/sysdeps/linux/mips/crti.S
@@ -0,0 +1,50 @@
+ .file 1 "initfini.c"
+ .section .mdebug.abi32
+ .previous
+ .abicalls
+#APP
+
+ .section .init
+#NO_APP
+ .align 2
+ .globl _init
+ .ent _init
+ .type _init, @function
+_init:
+ .frame $sp,32,$31 # vars= 0, regs= 2/0, args= 16, extra= 8
+ .mask 0x90000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .cpload $25
+ .set reorder
+ subu $sp,$sp,32
+ .cprestore 16
+ sw $31,28($sp)
+ sw $28,24($sp)
+#APP
+
+ .align 2
+ .end _init
+
+ .section .fini
+#NO_APP
+ .align 2
+ .globl _fini
+ .ent _fini
+ .type _fini, @function
+_fini:
+ .frame $sp,32,$31 # vars= 0, regs= 2/0, args= 16, extra= 8
+ .mask 0x90000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .cpload $25
+ .set reorder
+ subu $sp,$sp,32
+ .cprestore 16
+ sw $31,28($sp)
+ sw $28,24($sp)
+#APP
+ .align 2
+ .end _fini
+
+ .ident "GCC: (GNU) 3.3.2"