aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/libc/_start.s
blob: 56075c840f93a59cd6475ba57d16606e59f55bfe (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()
# (_start_inner()) is called.

.set noreorder
.section .text

.global _start
.type _start, @function
.weak _start
_start:
	la $gp, _gp

	j  _start_inner
	nop