mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 19:54:21 +01:00
Avoid changed section warning
This commit is contained in:
parent
ef2971d8dc
commit
e0e2212db3
@ -48,7 +48,7 @@ SECTIONS {
|
|||||||
ALIGN(4)
|
ALIGN(4)
|
||||||
{
|
{
|
||||||
src/rom_header.o(.text);
|
src/rom_header.o(.text);
|
||||||
src/rom_header_gf.o(.text);
|
src/rom_header_gf.o(.text.*);
|
||||||
src/crt0.o(.text);
|
src/crt0.o(.text);
|
||||||
src/main.o(.text);
|
src/main.o(.text);
|
||||||
gflib/malloc.o(.text);
|
gflib/malloc.o(.text);
|
||||||
|
@ -83,7 +83,9 @@ struct GFRomHeader
|
|||||||
u32 unk_1E;
|
u32 unk_1E;
|
||||||
};
|
};
|
||||||
|
|
||||||
__attribute__((section(".text")))
|
// This seems to need to be in the text section for some reason.
|
||||||
|
// To avoid a changed section warning it's put in a special .text.consts section instead of .text.
|
||||||
|
__attribute__((section(".text.consts")))
|
||||||
static const struct GFRomHeader sGFRomHeader = {
|
static const struct GFRomHeader sGFRomHeader = {
|
||||||
.version = GAME_VERSION,
|
.version = GAME_VERSION,
|
||||||
.language = GAME_LANGUAGE,
|
.language = GAME_LANGUAGE,
|
||||||
|
Loading…
Reference in New Issue
Block a user