1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 21:40:03 +00:00

Force string.o to be in boot for gcc builds (#1948)

In retail builds, memcpy is linked in code, not boot, but GCC likes to call memcpy when copying structs so currently GCC builds immediately crash in __osInitialize_common.
This commit is contained in:
cadmic 2024-04-25 04:10:31 -07:00 committed by GitHub
parent 7e8b9144c2
commit d4d7512cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
spec
View file

@ -66,7 +66,7 @@ beginseg
#endif
include "$(BUILD_DIR)/src/libultra/os/unmaptlball.o"
include "$(BUILD_DIR)/src/libultra/io/epidma.o"
#if OOT_DEBUG
#if OOT_DEBUG || COMPILER_GCC
include "$(BUILD_DIR)/src/libultra/libc/string.o"
#endif
include "$(BUILD_DIR)/src/libultra/os/invalicache.o"
@ -532,6 +532,8 @@ beginseg
include "$(BUILD_DIR)/src/libultra/gu/lookathil.o"
#if !OOT_DEBUG
include "$(BUILD_DIR)/src/libultra/libc/xprintf.o"
#endif
#if !OOT_DEBUG && !COMPILER_GCC
include "$(BUILD_DIR)/src/libultra/libc/string.o"
#endif
include "$(BUILD_DIR)/src/libultra/io/sp.o"