aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/libc/_start.s
blob: fcd4c4ca289af7295e97589855b4ab95cfaf9394 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# PSn00bSDK _start() trampoline
# (C) 2022 spicyjpeg - MPL licensed
#
# This file provides a weak function that can be easily overridden to e.g. set
# $sp or perform additional initialization before the "real" _start() function
# (_start_inner()) is called.

.set noreorder

.section .text._start
.global _start
.type _start, @function
.weak _start
_start:
	la $gp, _gp
	j  _start_inner
	nop