diff --git a/configure.py b/configure.py index 885faac87..b071ac48d 100644 --- a/configure.py +++ b/configure.py @@ -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"]), ], }, { diff --git a/src/Runtime.PPCEABI.H/GCN_mem_alloc.c b/src/Runtime.PPCEABI.H/GCN_mem_alloc.c index b5f2e147c..e5eb716d3 100644 --- a/src/Runtime.PPCEABI.H/GCN_mem_alloc.c +++ b/src/Runtime.PPCEABI.H/GCN_mem_alloc.c @@ -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();