2017-12-11 06:41:46 +00:00
|
|
|
ENTRY(Start)
|
|
|
|
|
2018-11-20 05:17:30 +00:00
|
|
|
gNumMusicPlayers = 8;
|
|
|
|
gMaxLines = 0;
|
|
|
|
|
2017-12-11 06:41:46 +00:00
|
|
|
SECTIONS {
|
|
|
|
. = 0x2000000;
|
|
|
|
|
|
|
|
ewram (NOLOAD) :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
ewram_start = .;
|
2018-10-16 09:11:54 +00:00
|
|
|
INCLUDE "sym_ewram.ld"
|
2017-12-11 06:41:46 +00:00
|
|
|
src/agb_flash.o(.bss);
|
2020-10-20 18:02:58 +00:00
|
|
|
*libgcc.a:fp-bit.o(.bss);
|
|
|
|
*libgcc.a:dp-bit.o(.bss);
|
|
|
|
*libc.a:syscalls.o(.bss);
|
2017-12-17 02:43:34 +00:00
|
|
|
. = ALIGN(16);
|
2018-10-16 09:11:54 +00:00
|
|
|
INCLUDE "sym_ewram2.ld"
|
2020-10-20 18:02:58 +00:00
|
|
|
*libc.a:impure.o(.data);
|
|
|
|
*libc.a:locale.o(.data);
|
|
|
|
*libc.a:mallocr.o(.data);
|
2017-12-17 02:43:34 +00:00
|
|
|
gUnknown_203BC04 = .;
|
2017-12-11 06:41:46 +00:00
|
|
|
. = 0x40000;
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x3000000;
|
|
|
|
|
|
|
|
iwram (NOLOAD) :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
iwram_start = .;
|
2018-10-16 09:11:54 +00:00
|
|
|
INCLUDE "sym_iwram.ld"
|
2017-12-11 06:41:46 +00:00
|
|
|
. = 0x8000;
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x8000000;
|
|
|
|
|
|
|
|
.text :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
asm/crt0.o(.text);
|
|
|
|
asm/code.o(.text);
|
2020-10-13 22:30:44 +00:00
|
|
|
src/code_80001E0.o(.text);
|
2020-10-04 18:07:14 +00:00
|
|
|
asm/arm_func.o(.text);
|
|
|
|
asm/code_2.o(.text);
|
2020-09-16 05:15:52 +00:00
|
|
|
src/code.o(.text);
|
2017-12-11 21:17:08 +00:00
|
|
|
asm/event_flag.o(.text);
|
2020-09-05 17:43:37 +00:00
|
|
|
src/event_flag.o(.text);
|
2017-12-11 21:17:08 +00:00
|
|
|
asm/code_8002774.o(.text);
|
2018-10-17 03:28:27 +00:00
|
|
|
src/memory.o(.text);
|
2017-12-11 11:20:15 +00:00
|
|
|
asm/memory.o(.text);
|
2020-09-15 22:09:36 +00:00
|
|
|
src/memory1.o(.text);
|
2017-12-11 11:20:15 +00:00
|
|
|
asm/code_80035F0.o(.text);
|
2017-12-11 17:18:22 +00:00
|
|
|
src/other_random.o(.text);
|
2017-12-11 18:14:59 +00:00
|
|
|
src/util.o(.text);
|
2018-10-17 03:28:27 +00:00
|
|
|
src/bg_palette_buffer.o(.text);
|
2020-09-16 19:00:48 +00:00
|
|
|
src/input.o(.text);
|
2017-12-12 04:56:51 +00:00
|
|
|
asm/input.o(.text);
|
|
|
|
asm/code_8004AA0.o(.text);
|
2018-11-18 08:23:57 +00:00
|
|
|
src/sprite.o(.text);
|
2017-12-12 04:18:27 +00:00
|
|
|
asm/sprite.o(.text);
|
|
|
|
asm/code_800558C.o(.text);
|
2020-10-15 21:56:25 +00:00
|
|
|
src/code_800558C.o(.text);
|
2017-12-11 08:50:59 +00:00
|
|
|
src/random.o(.text);
|
2018-01-21 21:51:04 +00:00
|
|
|
src/text.o(.text);
|
2018-11-21 10:48:01 +00:00
|
|
|
. = ALIGN(4);
|
2017-12-12 00:40:00 +00:00
|
|
|
asm/text.o(.text);
|
|
|
|
asm/code_8009804.o(.text);
|
2017-12-12 08:17:17 +00:00
|
|
|
src/file_system.o(.text);
|
2017-12-11 19:39:11 +00:00
|
|
|
asm/code_800AAA0.o(.text);
|
2017-12-11 06:41:46 +00:00
|
|
|
src/main.o(.text);
|
|
|
|
asm/code_800B540.o(.text);
|
2020-10-14 01:07:41 +00:00
|
|
|
src/code_800B5F0.o(.text);
|
|
|
|
asm/code_800B5F0.o(.text);
|
2017-12-12 03:05:47 +00:00
|
|
|
src/flash.o(.text);
|
2017-12-12 01:26:33 +00:00
|
|
|
asm/code_800D090.o(.text);
|
2020-09-20 04:28:48 +00:00
|
|
|
src/code_80118A4.o(.text);
|
|
|
|
asm/code_80118A4.o(.text);
|
2020-09-27 01:09:32 +00:00
|
|
|
src/code_80118A4_1.o(.text);
|
|
|
|
asm/fatal_system.o(.text);
|
2018-10-17 03:28:27 +00:00
|
|
|
src/save.o(.text);
|
2017-12-12 03:17:54 +00:00
|
|
|
asm/save.o(.text);
|
2020-10-09 06:34:01 +00:00
|
|
|
src/save_mid.o(.text);
|
|
|
|
asm/save1.o(.text);
|
2018-11-18 08:23:57 +00:00
|
|
|
src/save1.o(.text);
|
2017-12-12 03:17:54 +00:00
|
|
|
asm/code_8012A18.o(.text);
|
2020-10-17 05:51:33 +00:00
|
|
|
src/code_801D760.o(.text);
|
|
|
|
asm/code_801D760.o(.text);
|
2020-10-09 01:18:00 +00:00
|
|
|
src/code_8027C84_pre.o(.text);
|
|
|
|
asm/code_8027C84.o(.text);
|
|
|
|
src/code_8027C84.o(.text);
|
2020-09-24 06:12:49 +00:00
|
|
|
asm/code_803D110.o(.text);
|
2020-10-21 22:48:40 +00:00
|
|
|
src/code_8040094.o(.text);
|
|
|
|
asm/code_8040094.o(.text);
|
|
|
|
src/code_8041AD0.o(.text);
|
|
|
|
asm/code_8041AD0.o(.text);
|
2020-09-27 22:56:12 +00:00
|
|
|
src/code_80428A0.o(.text);
|
|
|
|
asm/code_80428A0.o(.text);
|
2020-09-25 05:10:54 +00:00
|
|
|
src/code_8048480.o(.text);
|
|
|
|
asm/code_8048480.o(.text);
|
2020-09-18 05:00:39 +00:00
|
|
|
src/code_80521D0.o(.text);
|
|
|
|
asm/code_80521D0.o(.text);
|
2020-09-16 05:15:52 +00:00
|
|
|
src/pokemon.o(.text);
|
2020-09-24 03:56:31 +00:00
|
|
|
asm/pokemon.o(.text);
|
2020-10-01 22:40:44 +00:00
|
|
|
src/pokemon_mid.o(.text);
|
|
|
|
asm/pokemon_1.o(.text);
|
2020-10-01 18:32:53 +00:00
|
|
|
src/pokemon_1.o(.text);
|
2020-09-30 19:48:13 +00:00
|
|
|
src/code_808DAB4.o(.text);
|
2020-09-06 14:35:24 +00:00
|
|
|
asm/code_808DAB4.o(.text);
|
2020-10-24 02:03:52 +00:00
|
|
|
src/code_808EAB0.o(.text);
|
|
|
|
asm/code_808EAB0.o(.text);
|
2020-06-02 18:56:12 +00:00
|
|
|
src/dungeon.o(.text);
|
|
|
|
asm/code_809017C.o(.text);
|
2020-09-17 17:18:11 +00:00
|
|
|
src/code_8092334.o(.text);
|
|
|
|
asm/code_8092334.o(.text);
|
2020-10-09 06:34:01 +00:00
|
|
|
src/code_8094F88.o(.text);
|
|
|
|
asm/code_8094F88.o(.text);
|
2020-10-15 16:50:49 +00:00
|
|
|
src/code_8095014.o(.text);
|
|
|
|
asm/code_8095014.o(.text);
|
2020-11-02 05:23:32 +00:00
|
|
|
src/code_8097F40.o(.text);
|
|
|
|
asm/code_8097F40.o(.text);
|
2020-09-16 16:58:10 +00:00
|
|
|
asm/code_8098468.o(.text);
|
2020-10-17 05:51:33 +00:00
|
|
|
src/code_8098BDC.o(.text);
|
|
|
|
asm/code_8098BDC.o(.text);
|
2020-10-03 23:16:34 +00:00
|
|
|
asm/code_809D148.o(.text);
|
2020-09-25 21:23:07 +00:00
|
|
|
asm/code_80A26CC.o(.text);
|
2020-09-27 02:43:31 +00:00
|
|
|
src/code_80A7714.o(.text);
|
|
|
|
asm/code_80A7714.o(.text);
|
2018-11-20 05:17:30 +00:00
|
|
|
asm/m4a_1.o(.text);
|
2019-08-11 14:31:39 +00:00
|
|
|
src/m4a.o(.text);
|
2020-10-20 18:02:58 +00:00
|
|
|
*libagbsyscall.a:CpuSet.o(.text);
|
|
|
|
*libagbsyscall.a:SoundBiasReset.o(.text);
|
|
|
|
*libagbsyscall.a:SoundBiasSet.o(.text);
|
|
|
|
*libagbsyscall.a:VBlankIntrWait.o(.text);
|
2017-12-11 06:41:46 +00:00
|
|
|
src/agb_flash.o(.text);
|
|
|
|
src/agb_flash_1m.o(.text);
|
|
|
|
src/agb_flash_mx.o(.text);
|
|
|
|
src/agb_flash_le.o(.text);
|
2020-10-20 18:02:58 +00:00
|
|
|
*libgcc.a:_call_via_rX.o(.text);
|
|
|
|
*libgcc.a:_divsi3.o(.text);
|
|
|
|
*libgcc.a:_dvmd_tls.o(.text);
|
|
|
|
*libgcc.a:_fixunssfsi.o(.text);
|
|
|
|
*libgcc.a:_modsi3.o(.text);
|
|
|
|
*libgcc.a:_umodsi3.o(.text);
|
|
|
|
*libgcc.a:fp-bit.o(.text);
|
|
|
|
*libgcc.a:_muldi3.o(.text);
|
|
|
|
*libgcc.a:dp-bit.o(.text);
|
|
|
|
*libgcc.a:_lshrdi3.o(.text);
|
|
|
|
*libgcc.a:_negdi2.o(.text);
|
|
|
|
*libc.a:memcpy.o(.text);
|
|
|
|
*libc.a:memset.o(.text);
|
|
|
|
*libc.a:sprintf.o(.text);
|
|
|
|
*libc.a:strcat.o(.text);
|
|
|
|
*libc.a:strcmp.o(.text);
|
|
|
|
*libc.a:strcpy.o(.text);
|
|
|
|
*libc.a:strlen.o(.text);
|
|
|
|
*libc.a:strncpy.o(.text);
|
|
|
|
*libc.a:vfprintf.o(.text);
|
|
|
|
*libc.a:vsprintf.o(.text);
|
|
|
|
*libc.a:wsetup.o(.text);
|
|
|
|
*libc.a:dtoa.o(.text);
|
|
|
|
*libc.a:fflush.o(.text);
|
|
|
|
*libc.a:findfp.o(.text);
|
|
|
|
*libc.a:freer.o(.text);
|
|
|
|
*libc.a:fvwrite.o(.text);
|
|
|
|
*libc.a:fwalk.o(.text);
|
|
|
|
*libc.a:locale.o(.text);
|
|
|
|
*libc.a:makebuf.o(.text);
|
|
|
|
*libc.a:mallocr.o(.text);
|
|
|
|
*libc.a:mbtowc_r.o(.text);
|
|
|
|
*libc.a:memchr.o(.text);
|
|
|
|
*libc.a:memmove.o(.text);
|
|
|
|
*libc.a:mlock.o(.text);
|
|
|
|
*libc.a:mprec.o(.text);
|
|
|
|
*libc.a:s_isinf.o(.text);
|
|
|
|
*libc.a:s_isnan.o(.text);
|
|
|
|
*libc.a:sbrkr.o(.text);
|
|
|
|
*libc.a:stdio.o(.text);
|
|
|
|
*libc.a:syscalls.o(.text);
|
|
|
|
*libc.a:writer.o(.text);
|
|
|
|
*libc.a:callocr.o(.text);
|
|
|
|
*libc.a:closer.o(.text);
|
|
|
|
*libc.a:errno.o(.text);
|
|
|
|
*libc.a:fstatr.o(.text);
|
|
|
|
*libc.a:abort.o(.text);
|
|
|
|
*libc.a:libcfunc.o(.text);
|
|
|
|
*libc.a:lseekr.o(.text);
|
|
|
|
*libc.a:readr.o(.text);
|
|
|
|
*libgcc.a:_udivsi3.o(.text);
|
2017-12-11 06:41:46 +00:00
|
|
|
} =0
|
|
|
|
|
|
|
|
.rodata :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/data.o(.rodata);
|
2017-12-12 08:17:17 +00:00
|
|
|
src/file_system.o(.rodata);
|
|
|
|
data/data_80B9BB8.o(.rodata);
|
2020-10-17 17:27:49 +00:00
|
|
|
data/personality_test.o(.rodata);
|
|
|
|
src/personality_test.o(.rodata);
|
|
|
|
data/data_80F4278.o(.rodata);
|
2018-11-20 05:17:30 +00:00
|
|
|
src/m4a_tables.o(.rodata);
|
2017-12-11 06:41:46 +00:00
|
|
|
src/agb_flash.o(.rodata);
|
|
|
|
src/agb_flash_1m.o(.rodata);
|
|
|
|
src/agb_flash_mx.o(.rodata);
|
|
|
|
src/agb_flash_le.o(.rodata);
|
2020-10-20 18:02:58 +00:00
|
|
|
*libc.a:sprintf.o(.rodata);
|
|
|
|
*libc.a:vfprintf.o(.rodata);
|
|
|
|
*libc.a:dtoa.o(.rodata);
|
|
|
|
*libc.a:impure.o(.rodata);
|
|
|
|
*libc.a:locale.o(.rodata);
|
|
|
|
*libc.a:mprec.o(.rodata);
|
|
|
|
*libc.a:syscalls.o(.rodata);
|
2017-12-17 02:43:34 +00:00
|
|
|
. = ALIGN(4);
|
2017-12-11 06:41:46 +00:00
|
|
|
data/data_8270000.o(.rodata);
|
|
|
|
} =0
|
|
|
|
|
|
|
|
unk_code_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
unk_code = .;
|
|
|
|
asm/code_8272724.o(.rodata);
|
2020-09-20 06:54:59 +00:00
|
|
|
src/code_8272724.o(.text);
|
2017-12-11 06:41:46 +00:00
|
|
|
asm/code_8272724.o(.text);
|
|
|
|
unk_code_end = .;
|
|
|
|
}
|
|
|
|
|
2018-11-20 05:17:30 +00:00
|
|
|
unk_code_section_size = (unk_code_end - unk_code);
|
|
|
|
unk_code_ram_end = unk_code_ram + unk_code_section_size;
|
2017-12-11 06:41:46 +00:00
|
|
|
end = unk_code_ram_end;
|
|
|
|
|
|
|
|
. = 0x8300000;
|
|
|
|
unk_data :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/unk_data.o(.rodata);
|
|
|
|
}
|
|
|
|
|
2017-12-11 10:23:26 +00:00
|
|
|
. = 0x8300500;
|
|
|
|
system_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/system_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x8380000;
|
|
|
|
titlemenu_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/titlemenu_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x83B0000;
|
|
|
|
dungeon_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/dungeon_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x8510000;
|
|
|
|
monster_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/monster_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x9740000;
|
|
|
|
effect_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/effect_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x9890000;
|
|
|
|
ground_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/ground_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = 0x9E60000;
|
|
|
|
ornament_sbin_section :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/ornament_sbin.o(.rodata);
|
|
|
|
}
|
|
|
|
|
|
|
|
sound_data :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
data/sound_data.o(.rodata);
|
|
|
|
}
|
|
|
|
|
2017-12-11 06:41:46 +00:00
|
|
|
/* DWARF 2 sections */
|
|
|
|
.debug_aranges 0 : { *(.debug_aranges) }
|
|
|
|
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
|
|
.debug_info 0 : { *(.debug_info) }
|
|
|
|
.debug_abbrev 0 : { *(.debug_abbrev) }
|
|
|
|
.debug_line 0 : { *(.debug_line) }
|
|
|
|
.debug_frame 0 : { *(.debug_frame) }
|
|
|
|
.debug_str 0 : { *(.debug_str) }
|
|
|
|
.debug_loc 0 : { *(.debug_loc) }
|
|
|
|
.debug_macinfo 0 : { *(.debug_macinfo) }
|
|
|
|
|
|
|
|
/* Discard everything not specifically mentioned above. */
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(*);
|
|
|
|
}
|
|
|
|
}
|