2019-06-27 00:12:40 +00:00
|
|
|
ENTRY(Start)
|
|
|
|
|
|
|
|
gNumMusicPlayers = 4;
|
|
|
|
gMaxLines = 0;
|
|
|
|
|
2023-11-12 02:19:50 +00:00
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
EWRAM (rwx) : ORIGIN = 0x2000000, LENGTH = 256K
|
|
|
|
IWRAM (rwx) : ORIGIN = 0x3000000, LENGTH = 32K
|
2023-11-23 21:13:50 +00:00
|
|
|
ROM (rx) : ORIGIN = 0x8000000, LENGTH = 32M
|
2023-11-12 02:19:50 +00:00
|
|
|
}
|
|
|
|
|
2019-06-27 00:12:40 +00:00
|
|
|
SECTIONS {
|
|
|
|
|
2023-11-12 02:19:50 +00:00
|
|
|
ewram 0x2000000 (NOLOAD) :
|
2019-06-27 00:12:40 +00:00
|
|
|
ALIGN(4)
|
|
|
|
{
|
2023-11-23 21:13:50 +00:00
|
|
|
src/*.o(ewram_data);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > EWRAM
|
2019-06-27 00:12:40 +00:00
|
|
|
|
2023-11-12 02:19:50 +00:00
|
|
|
iwram 0x3000000 (NOLOAD) :
|
2019-06-27 00:12:40 +00:00
|
|
|
ALIGN(4)
|
|
|
|
{
|
2019-06-29 12:35:52 +00:00
|
|
|
src/*.o(.bss);
|
2022-01-23 02:30:39 +00:00
|
|
|
data/*.o(.bss);
|
2021-05-04 22:49:42 +00:00
|
|
|
*libc.a:*.o(.bss*);
|
|
|
|
*libnosys.a:*.o(.bss*);
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
src/m4a.o(.bss.code);
|
|
|
|
|
2024-10-15 03:52:11 +00:00
|
|
|
src/*.o(common_data);
|
2023-11-23 21:13:50 +00:00
|
|
|
src/*.o(COMMON);
|
|
|
|
*libc.a:*.o(COMMON);
|
2021-04-17 20:46:15 +00:00
|
|
|
*libnosys.a:*.o(COMMON);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > IWRAM
|
2019-06-27 00:12:40 +00:00
|
|
|
|
2023-11-12 02:19:50 +00:00
|
|
|
/* BEGIN ROM DATA */
|
2019-06-27 00:12:40 +00:00
|
|
|
. = 0x8000000;
|
|
|
|
|
|
|
|
.text :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
2021-11-04 21:28:41 +00:00
|
|
|
src/rom_header.o(.text*);
|
2022-11-02 16:42:26 +00:00
|
|
|
src/rom_header_gf.o(.text.*);
|
|
|
|
src/crt0.o(.text);
|
|
|
|
src/main.o(.text);
|
|
|
|
src/*.o(.text*);
|
2021-05-04 22:49:42 +00:00
|
|
|
asm/*.o(.text*);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2021-03-07 22:24:30 +00:00
|
|
|
|
2019-06-27 00:12:40 +00:00
|
|
|
script_data :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
2019-06-29 12:35:52 +00:00
|
|
|
data/*.o(script_data);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
lib_text :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
2019-08-06 18:08:13 +00:00
|
|
|
src/libgcnmultiboot.o(.text);
|
|
|
|
src/m4a_1.o(.text);
|
2019-06-27 00:12:40 +00:00
|
|
|
src/m4a.o(.text);
|
|
|
|
src/agb_flash.o(.text);
|
|
|
|
src/agb_flash_1m.o(.text);
|
|
|
|
src/agb_flash_mx.o(.text);
|
|
|
|
src/siirtc.o(.text);
|
|
|
|
src/librfu_stwi.o(.text);
|
|
|
|
src/librfu_intr.o(.text);
|
|
|
|
src/librfu_rfu.o(.text);
|
2020-01-15 23:28:23 +00:00
|
|
|
src/librfu_sio32id.o(.text);
|
2019-09-09 01:41:40 +00:00
|
|
|
*libagbsyscall.a:*.o(.text*);
|
2019-06-27 00:12:40 +00:00
|
|
|
*libgcc.a:*.o(.text*);
|
|
|
|
*libc.a:*.o(.text*);
|
2021-04-17 20:46:15 +00:00
|
|
|
*libnosys.a:*.o(.text*);
|
2019-06-27 00:12:40 +00:00
|
|
|
src/libisagbprn.o(.text);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
.rodata :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
src/*.o(.rodata*);
|
2019-06-27 10:55:50 +00:00
|
|
|
data/*.o(.rodata*);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
song_data :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
2019-06-27 10:55:50 +00:00
|
|
|
sound/songs/*.o(.rodata);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
lib_rodata :
|
|
|
|
SUBALIGN(4)
|
|
|
|
{
|
2019-06-27 10:55:50 +00:00
|
|
|
src/m4a.o(.rodata);
|
2019-06-27 00:12:40 +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);
|
|
|
|
src/siirtc.o(.rodata);
|
2020-01-15 23:28:23 +00:00
|
|
|
src/librfu_rfu.o(.rodata);
|
|
|
|
src/librfu_sio32id.o(.rodata);
|
2019-06-27 00:12:40 +00:00
|
|
|
*libgcc.a:*.o(.rodata*);
|
|
|
|
*libc.a:*.o(.rodata*);
|
|
|
|
*libc.a:*.o(.data*);
|
|
|
|
src/libisagbprn.o(.rodata);
|
|
|
|
} =0
|
|
|
|
|
2022-01-13 20:26:20 +00:00
|
|
|
multiboot_data :
|
2019-06-27 00:12:40 +00:00
|
|
|
ALIGN(4)
|
|
|
|
{
|
2022-01-13 20:26:20 +00:00
|
|
|
data/multiboot_ereader.o(.rodata);
|
2019-06-27 00:12:40 +00:00
|
|
|
data/multiboot_berry_glitch_fix.o(.rodata);
|
|
|
|
data/multiboot_pokemon_colosseum.o(.rodata);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
anim_mon_front_pic_data :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
src/anim_mon_front_pics.o(.rodata);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
gfx_data :
|
|
|
|
ALIGN(4)
|
|
|
|
{
|
|
|
|
src/graphics.o(.rodata);
|
2023-11-12 02:19:50 +00:00
|
|
|
} > ROM =0
|
2019-06-27 00:12:40 +00:00
|
|
|
|
|
|
|
/* DWARF debug sections.
|
|
|
|
Symbols in the DWARF debugging sections are relative to the beginning
|
|
|
|
of the section so we begin them at 0. */
|
|
|
|
|
|
|
|
/* DWARF 1 */
|
|
|
|
.debug 0 : { *(.debug) }
|
|
|
|
.line 0 : { *(.line) }
|
|
|
|
|
|
|
|
/* GNU DWARF 1 extensions */
|
|
|
|
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
|
|
|
.debug_sfnames 0 : { *(.debug_sfnames) }
|
|
|
|
|
|
|
|
/* DWARF 1.1 and DWARF 2 */
|
|
|
|
.debug_aranges 0 : { *(.debug_aranges) }
|
|
|
|
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
|
|
|
|
|
|
/* DWARF 2 */
|
|
|
|
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
|
|
|
.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/ :
|
|
|
|
{
|
|
|
|
*(*);
|
|
|
|
}
|
|
|
|
}
|