summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2019-07-11 15:26:15 +0900
committerGitHub <noreply@github.com>2019-07-11 15:26:15 +0900
commitae01afdd30cc24eb2ff9a13789c108a418f8d7f4 (patch)
tree1c56a0aa73e0d2a77123ec1544da658d3485df12
parent717c3350c40f501cee170426432ea75678a264d0 (diff)
parentf4a65dbb1cf3f543cdeadea0b67f4c7612c531ac (diff)
Merge pull request #743 from aaaaaa123456789/master
Fix LD script to not contain huge gap sections
-rw-r--r--ld_script.txt24
1 files changed, 8 insertions, 16 deletions
diff --git a/ld_script.txt b/ld_script.txt
index b1c81f6e4..e8be7e76d 100644
--- a/ld_script.txt
+++ b/ld_script.txt
@@ -3,6 +3,12 @@ ENTRY(Start)
gNumMusicPlayers = 4;
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 {
. = 0x2000000;
@@ -1217,27 +1223,13 @@ SECTIONS {
data/multiboot_pokemon_colosseum.o(.rodata);
} =0
- gap1 :
- {
- gap1_start = ABSOLUTE(.);
- BYTE(0x00)
- . = 0x8B00000 - gap1_start;
- } =0
-
- anim_mon_front_pic_data :
+ anim_mon_front_pic_data __anim_mon_load_address :
ALIGN(4)
{
src/anim_mon_front_pics.o(.rodata);
} =0
- gap2 :
- {
- gap2_start = ABSOLUTE(.);
- BYTE(0x00)
- . = 0x8C00000 - gap2_start;
- } =0
-
- gfx_data :
+ gfx_data __gfx_load_address :
ALIGN(4)
{
src/graphics.o(.rodata);