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);
|
|
|
|
tools/agbcc/lib/libgcc.a:fp-bit.o(.bss);
|
|
|
|
tools/agbcc/lib/libgcc.a:dp-bit.o(.bss);
|
2018-01-04 00:39:24 +00:00
|
|
|
tools/agbcc/lib/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"
|
2018-01-04 00:39:24 +00:00
|
|
|
tools/agbcc/lib/libc.a:impure.o(.data);
|
|
|
|
tools/agbcc/lib/libc.a:locale.o(.data);
|
|
|
|
tools/agbcc/lib/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-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);
|
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);
|
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);
|
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-09-24 06:12:49 +00:00
|
|
|
src/code_8012A18.o(.text);
|
|
|
|
asm/code_803D110.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-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-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-09-16 16:58:10 +00:00
|
|
|
asm/code_8098468.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);
|
|
|
|
src/m4a_2.o(.text);
|
|
|
|
asm/m4a_3.o(.text);
|
|
|
|
src/m4a_4.o(.text);
|
2017-12-11 06:41:46 +00:00
|
|
|
asm/syscall.o(.text);
|
|
|
|
src/agb_flash.o(.text);
|
|
|
|
src/agb_flash_1m.o(.text);
|
|
|
|
src/agb_flash_mx.o(.text);
|
|
|
|
src/agb_flash_le.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_call_via_rX.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_divsi3.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_dvmd_tls.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_fixunssfsi.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_modsi3.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_umodsi3.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:fp-bit.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_muldi3.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:dp-bit.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_lshrdi3.o(.text);
|
|
|
|
tools/agbcc/lib/libgcc.a:_negdi2.o(.text);
|
2018-01-04 00:39:24 +00:00
|
|
|
tools/agbcc/lib/libc.a:memcpy.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:memset.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:sprintf.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:strcat.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:strcmp.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:strcpy.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:strlen.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:strncpy.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:vfprintf.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:vsprintf.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:wsetup.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:dtoa.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:fflush.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:findfp.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:freer.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:fvwrite.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:fwalk.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:locale.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:makebuf.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:mallocr.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:mbtowc_r.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:memchr.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:memmove.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:mlock.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:mprec.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:s_isinf.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:s_isnan.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:sbrkr.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:stdio.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:syscalls.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:writer.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:callocr.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:closer.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:errno.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:fstatr.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:abort.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:libcfunc.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:lseekr.o(.text);
|
|
|
|
tools/agbcc/lib/libc.a:readr.o(.text);
|
2017-12-15 00:51:13 +00:00
|
|
|
tools/agbcc/lib/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);
|
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);
|
2018-01-04 00:39:24 +00:00
|
|
|
tools/agbcc/lib/libc.a:sprintf.o(.rodata);
|
|
|
|
tools/agbcc/lib/libc.a:vfprintf.o(.rodata);
|
|
|
|
tools/agbcc/lib/libc.a:dtoa.o(.rodata);
|
|
|
|
tools/agbcc/lib/libc.a:impure.o(.rodata);
|
|
|
|
tools/agbcc/lib/libc.a:locale.o(.rodata);
|
|
|
|
tools/agbcc/lib/libc.a:mprec.o(.rodata);
|
|
|
|
tools/agbcc/lib/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/ :
|
|
|
|
{
|
|
|
|
*(*);
|
|
|
|
}
|
|
|
|
}
|