From beb76e4dd362374b8f42cd971d394bba1074cd8d Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 5 Jul 2025 02:34:11 +0200 Subject: Replace .include with #include For some reason, both mipsel-unknown-elf-gcc 8.2.0 and mipsel-non-elf 15.1.0 were unable to resolve .include assembler directives. As a workaround, it is still possible to use the preprocessor, and therefore the usual #include preprocessor directive. However, this requires the assembly files to use the uppercase .S file extension. --- libpsn00b/libc/_start.S | 18 ++++++++++++++++++ 1 file changed, 18 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..35a4eaa --- /dev/null +++ b/libpsn00b/libc/_start.S @@ -0,0 +1,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 -- cgit v1.2.3