aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/libc/_start.S
blob: 35a4eaa3cba7effaf76ab500ca405793ac6047b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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, "ax", @progbits
.global _start
.type _start, @function
.weak _start

_start:
	la $gp, _gp
	j  _start_inner
	nop