summaryrefslogtreecommitdiffstats
path: root/gcc/config/mips/crti.asm
blob: 6452d1e4b28d178c5d2a8672c255979b676cbd1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* 4 slots for argument spill area.  1 for cpreturn, 1 for stack.
   Return spill offset of 40 and 20.  Aligned to 16 bytes for n32.  */

	.section .init,"ax",@progbits
	.globl	_init
	.type	_init,@function
_init:
#ifdef __mips64
	dsubu   $sp,$sp,48
	sd      $31,40($sp)
#else
	subu	$sp,$sp,32
	sw	$31,20($sp)
#endif

	.section .fini,"ax",@progbits
	.globl	_fini
	.type	_fini,@function
_fini:
#ifdef __mips64
	dsubu   $sp,$sp,48
	sd      $31,40($sp)
#else
	subu	$sp,$sp,32
	sw	$31,20($sp)
#endif
OpenPOWER on IntegriCloud