From 53d9845ae7cc45776bb1d084ccf54ae58186ff5c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 5 Nov 2003 01:44:16 +0000 Subject: Continue the conversion to using per-arch crti.S and crtn.S --- libc/sysdeps/linux/mips/crti.S | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libc/sysdeps/linux/mips/crti.S (limited to 'libc/sysdeps/linux/mips/crti.S') 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" -- cgit v1.2.3