From 5f25c0bf306d316c87fca9d3fe160d6661be230d Mon Sep 17 00:00:00 2001 From: spicyjpeg Date: Sun, 23 Oct 2022 15:03:16 +0200 Subject: Library bugfixes and additions, _sdk_log_inner() removal --- libpsn00b/libc/_start.s | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libpsn00b/libc/_start.s (limited to 'libpsn00b/libc/_start.s') diff --git a/libpsn00b/libc/_start.s b/libpsn00b/libc/_start.s new file mode 100644 index 0000000..fcd4c4c --- /dev/null +++ b/libpsn00b/libc/_start.s @@ -0,0 +1,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 -- cgit v1.2.3