mirror of https://github.com/pret/pokeemerald.git
Fix LD script to not contain huge gap sections
This commit is contained in:
parent
717c3350c4
commit
f4a65dbb1c
|
@ -3,6 +3,12 @@ ENTRY(Start)
|
||||||
gNumMusicPlayers = 4;
|
gNumMusicPlayers = 4;
|
||||||
gMaxLines = 0;
|
gMaxLines = 0;
|
||||||
|
|
||||||
|
/* Modify the following load addresses as needed to make more room. Alternately, delete both the
|
||||||
|
declarations below and their references further down to get rid of the gaps. */
|
||||||
|
|
||||||
|
__anim_mon_load_address = 0x8b00000;
|
||||||
|
__gfx_load_address = 0x8c00000;
|
||||||
|
|
||||||
SECTIONS {
|
SECTIONS {
|
||||||
. = 0x2000000;
|
. = 0x2000000;
|
||||||
|
|
||||||
|
@ -1217,27 +1223,13 @@ SECTIONS {
|
||||||
data/multiboot_pokemon_colosseum.o(.rodata);
|
data/multiboot_pokemon_colosseum.o(.rodata);
|
||||||
} =0
|
} =0
|
||||||
|
|
||||||
gap1 :
|
anim_mon_front_pic_data __anim_mon_load_address :
|
||||||
{
|
|
||||||
gap1_start = ABSOLUTE(.);
|
|
||||||
BYTE(0x00)
|
|
||||||
. = 0x8B00000 - gap1_start;
|
|
||||||
} =0
|
|
||||||
|
|
||||||
anim_mon_front_pic_data :
|
|
||||||
ALIGN(4)
|
ALIGN(4)
|
||||||
{
|
{
|
||||||
src/anim_mon_front_pics.o(.rodata);
|
src/anim_mon_front_pics.o(.rodata);
|
||||||
} =0
|
} =0
|
||||||
|
|
||||||
gap2 :
|
gfx_data __gfx_load_address :
|
||||||
{
|
|
||||||
gap2_start = ABSOLUTE(.);
|
|
||||||
BYTE(0x00)
|
|
||||||
. = 0x8C00000 - gap2_start;
|
|
||||||
} =0
|
|
||||||
|
|
||||||
gfx_data :
|
|
||||||
ALIGN(4)
|
ALIGN(4)
|
||||||
{
|
{
|
||||||
src/graphics.o(.rodata);
|
src/graphics.o(.rodata);
|
||||||
|
|
Loading…
Reference in New Issue