Use -str nopool to match GCN_mem_alloc

This commit is contained in:
LagoLunatic
2023-11-17 14:54:52 -05:00
parent 25a2486992
commit ad81f9c684
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -1075,7 +1075,7 @@ config.libs = [
Object(NonMatching, "Runtime.PPCEABI.H/runtime.c"),
Object(Matching, "Runtime.PPCEABI.H/__init_cpp_exceptions.cpp"),
Object(Matching, "Runtime.PPCEABI.H/Gecko_ExceptionPPC.cp"),
Object(Matching, "Runtime.PPCEABI.H/GCN_mem_alloc.c"),
Object(Matching, "Runtime.PPCEABI.H/GCN_mem_alloc.c", extra_cflags=["-str reuse,nopool,readonly"]),
],
},
{
+2 -5
View File
@@ -6,11 +6,8 @@ inline static void InitDefaultHeap() {
void* arenaLo;
void* arenaHi;
// This is to force the two strings be two separate rodata entries with padding instead of a single stringbase.
static const char dummy1[] = "GCN_Mem_Alloc.c : InitDefaultHeap. No Heap Available\n";
static const char dummy2[] = "Metrowerks CW runtime library initializing default heap\n";
OSReport(dummy1);
OSReport(dummy2);
OSReport("GCN_Mem_Alloc.c : InitDefaultHeap. No Heap Available\n");
OSReport("Metrowerks CW runtime library initializing default heap\n");
arenaLo = OSGetArenaLo();
arenaHi = OSGetArenaHi();