Skip to content

Commit

Permalink
Fix the issue where zero-initialized variables in non-.bss segments a…
Browse files Browse the repository at this point in the history
…re incorrectly compiled into the .bss segment and discarded in the latest GCC version.
  • Loading branch information
dnasdw committed Jun 10, 2024
1 parent 74787f8 commit 430d14d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/fonts/glyphs_1.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
struct Glyph gUnknown_08589C9C =
CONST_DATA struct Glyph gUnknown_08589C9C =
{
.sjisNext = NULL,
.sjisByte1 = 0,
Expand Down
2 changes: 1 addition & 1 deletion data/fonts/glyphs_2.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
struct Glyph gUnknown_0858CBEC =
CONST_DATA struct Glyph gUnknown_0858CBEC =
{
.sjisNext = NULL,
.sjisByte1 = 0,
Expand Down
2 changes: 1 addition & 1 deletion include/variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ extern struct ProcCmd CONST_DATA ProcScr_0859163C[];

extern const char *gStrPrefix[][2];
//extern struct {u32 *unk0; u32 *unk4; u32 *unk8;} gStrPrefix;
// extern ??? gUnknown_08591AB4
extern CONST_DATA int gUnknown_08591AB4[];

extern struct ProcCmd CONST_DATA ProcScr_EventFadefx[];
extern struct ProcCmd CONST_DATA ProcScr_ShinningStonefx[];
Expand Down

0 comments on commit 430d14d

Please sign in to comment.