diff --git a/wumsloader/Makefile b/wumsloader/Makefile index d79b164..91dcb1d 100644 --- a/wumsloader/Makefile +++ b/wumsloader/Makefile @@ -47,7 +47,7 @@ INCLUDES := src #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- -CFLAGS := -g -Wall -O0 -ffunction-sections $(MACHDEP) $(INCLUDE) -D__WIIU__ -D__WUT__ +CFLAGS := -g -Wall -O2 -ffunction-sections $(MACHDEP) $(INCLUDE) -D__WIIU__ -D__WUT__ CXXFLAGS := $(CFLAGS) -std=c++20 -fno-exceptions -fno-rtti ASFLAGS := -mregnames LDFLAGS := -Wl,--gc-sections,--allow-multiple-definition diff --git a/wumsloader/src/globals.h b/wumsloader/src/globals.h index 9005f37..ff521b8 100644 --- a/wumsloader/src/globals.h +++ b/wumsloader/src/globals.h @@ -15,7 +15,7 @@ extern std::unique_ptr gModuleDataInfo; #define MEMORY_REGION_SIZE 0x00800000 #define CUSTOM_RPX_LOADER_RETURN_CODE 0x00009000 // We have to skip the first 0x00009000 bytes because it's still used -#define RELOCATOR_SIZE 0x130000 // Maximum size of the wumsloader, needs to match the one defined in link.ld +#define RELOCATOR_SIZE 0x0D0000 // Maximum size of the wumsloader, needs to match the one defined in link.ld #define ENVIRONMENT_PATH_LENGTH 0x100 // Length of the EnvironmentPath. #define MEMORY_REGION_ENVIRONMENT_STRING_ADRR (MEMORY_REGION_START + CUSTOM_RPX_LOADER_RETURN_CODE + RELOCATOR_SIZE) diff --git a/wumsloader/src/link.ld b/wumsloader/src/link.ld index cf3a42b..1517857 100644 --- a/wumsloader/src/link.ld +++ b/wumsloader/src/link.ld @@ -92,4 +92,4 @@ SECTIONS { } } -ASSERT((SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.rodata) + SIZEOF(.eh_frame) + SIZEOF(.bss)) < 0x130000, "Memory overlapping with modules."); +ASSERT((SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.rodata) + SIZEOF(.eh_frame) + SIZEOF(.bss)) < 0x0D0000, "Memory overlapping with modules.");