pmd-red/ld_script.txt

525 lines
16 KiB
Plaintext
Raw Normal View History

2017-12-10 22:41:46 -08:00
ENTRY(Start)
gNumMusicPlayers = 8;
gMaxLines = 0;
2017-12-10 22:41:46 -08:00
SECTIONS {
. = 0x2000000;
ewram (NOLOAD) :
ALIGN(4)
{
ewram_start = .;
INCLUDE "sym_ewram.txt"
2017-12-10 22:41:46 -08:00
src/agb_flash.o(.bss);
*libgcc.a:fp-bit.o(.bss);
*libgcc.a:dp-bit.o(.bss);
*libc.a:syscalls.o(.bss);
2017-12-16 21:43:34 -05:00
. = ALIGN(16);
INCLUDE "sym_ewram2.txt"
*libc.a:impure.o(.data);
*libc.a:locale.o(.data);
*libc.a:mallocr.o(.data);
2017-12-16 21:43:34 -05:00
gUnknown_203BC04 = .;
2017-12-10 22:41:46 -08:00
. = 0x40000;
}
. = 0x3000000;
iwram (NOLOAD) :
ALIGN(4)
{
iwram_start = .;
INCLUDE "sym_iwram.txt"
2017-12-10 22:41:46 -08:00
. = 0x8000;
}
. = 0x8000000;
.text :
ALIGN(4)
{
asm/crt0.o(.text);
src/code_80001DC.o(.text);
2020-10-04 13:07:14 -05:00
asm/arm_func.o(.text);
2020-12-28 04:23:40 +01:00
src/code_2.o(.text);
2020-10-04 13:07:14 -05:00
asm/code_2.o(.text);
src/code.o(.text);
2017-12-11 13:17:08 -08:00
asm/event_flag.o(.text);
2020-09-05 12:43:37 -05:00
src/event_flag.o(.text);
2017-12-11 13:17:08 -08:00
asm/code_8002774.o(.text);
src/memory.o(.text);
2017-12-11 03:20:15 -08:00
asm/memory.o(.text);
src/memory_mid.o(.text);
asm/memory_1.o(.text);
2020-09-15 17:09:36 -05:00
src/memory1.o(.text);
2017-12-11 03:20:15 -08:00
asm/code_80035F0.o(.text);
2017-12-11 09:18:22 -08:00
src/other_random.o(.text);
2017-12-11 10:14:59 -08:00
src/util.o(.text);
src/bg_palette_buffer.o(.text);
2020-09-16 14:00:48 -05:00
src/input.o(.text);
2017-12-11 20:56:51 -08:00
asm/code_8004AA0.o(.text);
src/sprite.o(.text);
2017-12-11 20:18:27 -08:00
asm/sprite.o(.text);
asm/code_800558C.o(.text);
2020-10-15 16:56:25 -05:00
src/code_800558C.o(.text);
2017-12-11 00:50:59 -08:00
src/random.o(.text);
2018-01-21 16:51:04 -05:00
src/text.o(.text);
src/text_1.o(.text);
2017-12-11 16:40:00 -08:00
asm/text.o(.text);
src/code_8009804.o(.text);
2017-12-11 16:40:00 -08:00
asm/code_8009804.o(.text);
2017-12-12 00:17:17 -08:00
src/file_system.o(.text);
2017-12-10 22:41:46 -08:00
src/main.o(.text);
2020-10-13 20:07:41 -05:00
asm/code_800B5F0.o(.text);
2020-11-17 22:20:28 -06:00
src/music_pre.o(.text);
asm/music.o(.text);
src/music.o(.text);
src/code_800C9CC.o(.text);
src/cpu.o(.text);
2017-12-11 19:05:47 -08:00
src/flash.o(.text);
2020-11-14 17:44:04 -06:00
src/code_800D090.o(.text);
2017-12-11 17:26:33 -08:00
asm/code_800D090.o(.text);
2020-09-19 23:28:48 -05:00
src/code_80118A4.o(.text);
2021-01-27 18:46:39 -06:00
src/debug.o(.text);
src/save.o(.text);
src/code_8012A18.o(.text);
2021-01-07 16:10:24 -06:00
src/more_input.o(.text);
2017-12-11 19:17:54 -08:00
asm/code_8012A18.o(.text);
src/code_8012A18_1.o(.text);
src/felicity_bank.o(.text);
asm/felicity_bank.o(.text);
src/felicity_bank_1.o(.text);
src/kangaskhan_storage.o(.text);
asm/kangaskhan_storage.o(.text);
src/kangaskhan_storage_1.o(.text);
asm/kangaskhan_storage_1.o(.text);
src/kangaskhan_storage_2.o(.text);
asm/kangaskhan_storage_2.o(.text);
src/kangaskhan_storage_3.o(.text);
src/kecleon_items.o(.text);
asm/kecleon_items.o(.text);
src/kecleon_items_1.o(.text);
asm/kecleon_items_1.o(.text);
src/kecleon_items_2.o(.text);
src/code_801AFA4.o(.text);
src/code_801B3C0.o(.text);
asm/code_801B3C0.o(.text);
src/code_801C620.o(.text);
asm/code_801C620.o(.text);
2020-10-17 00:51:33 -05:00
src/code_801D760.o(.text);
asm/code_801D760.o(.text);
src/code_801DCC4.o(.text);
asm/code_801DCC4.o(.text);
2021-10-19 17:48:38 -07:00
src/hints_menu.o(.text);
src/gulpin_shop.o(.text);
asm/gulpin_shop.o(.text);
src/gulpin_shop_1.o(.text);
asm/code_801EE10.o(.text);
src/luminous_cave.o(.text);
2021-07-07 11:39:34 -05:00
asm/friend_list_menu.o(.text);
src/friend_list_menu.o(.text);
src/friend_area_action_menu.o(.text);
asm/friend_area_action_menu.o(.text);
src/friend_area_action_menu_1.o(.text);
src/wonder_mail.o(.text);
src/thank_you_wonder_mail.o(.text);
src/wonder_mail_2.o(.text);
asm/wonder_mail_2.o(.text);
src/wonder_mail_3.o(.text);
asm/wonder_mail_3.o(.text);
src/wonder_mail_802DF88.o(.text);
src/mailbox.o(.text);
asm/mailbox.o(.text);
src/mailbox_1.o(.text);
src/pelipper_board.o(.text);
asm/pelipper_board.o(.text);
src/pelipper_board_1.o(.text);
src/wonder_mail_3_mid.o(.text);
asm/wonder_mail_3_mid.o(.text);
src/wonder_mail_3_1.o(.text);
src/makuhita_dojo.o(.text);
asm/makuhita_dojo.o(.text);
src/wonder_mail_4.o(.text);
asm/wonder_mail_4.o(.text);
src/post_office_guide.o(.text);
asm/wonder_mail_5.o(.text);
src/adventure_log.o(.text);
src/friend_rescue.o(.text);
asm/friend_rescue.o(.text);
src/friend_rescue_1.o(.text);
asm/credits.o(.text);
src/credits.o(.text);
src/main_menu.o(.text);
src/trade_items_menu.o(.text);
src/other_menus.o(.text);
asm/other_menus.o(.text);
src/adventure_log_menu.o(.text);
src/unk_menu_203B360.o(.text);
asm/unk_menu_203B360.o(.text);
src/unk_menu_203B360_1.o(.text);
src/unk_menu_203B364.o(.text);
asm/unk_menu_203B364.o(.text);
src/rescue_password_menu.o(.text);
asm/rescue_password_menu.o(.text);
src/rescue_password_menu_1.o(.text);
src/load_screen.o(.text);
src/wonder_mail_main_menu.o(.text);
src/ds_menus.o(.text);
src/debug_menu.o(.text);
asm/debug_menu.o(.text);
src/debug_menu_mid.o(.text);
asm/debug_menu_1.o(.text);
src/debug_menu_2.o(.text);
asm/debug_menu_2.o(.text);
src/debug_menu_1.o(.text);
asm/code_803B050.o(.text);
src/pokemon_mail.o(.text);
src/code_803C1B4.o(.text);
asm/code_803C1D0.o(.text);
src/personality_test.o(.text);
src/code_803D0D8.o(.text);
asm/code_803D110.o(.text);
2020-10-21 17:48:40 -05:00
src/code_8040094.o(.text);
asm/code_8040094.o(.text);
src/code_8041AD0.o(.text);
asm/code_8041AD0.o(.text);
src/code_80428A0.o(.text);
asm/code_80428A0.o(.text);
src/dungeon_action.o(.text);
2022-01-13 23:18:59 -05:00
asm/code_8044CC8.o(.text);
src/dungeon_util.o(.text);
2021-10-15 18:30:33 -04:00
asm/code_80450F8.o(.text);
2021-12-14 23:26:56 -05:00
src/dungeon_visibility.o(.text);
asm/code_8045A00.o(.text);
2021-12-29 23:33:22 -06:00
src/dungeon_items.o(.text);
asm/code_8046CE4.o(.text);
2020-09-25 00:10:54 -05:00
src/code_8048480.o(.text);
asm/code_8048480.o(.text);
2022-01-04 00:00:31 -06:00
src/dungeon_ai_item_weight.o(.text);
2021-12-18 00:22:03 -05:00
src/dungeon_map_access.o(.text);
asm/code_8049590.o(.text);
src/code_80521D0.o(.text);
asm/code_80521D0.o(.text);
src/charge_move.o(.text);
asm/code_8057144.o(.text);
src/code_8057824.o(.text);
asm/code_8057824.o(.text);
src/code_806CD90.o(.text);
asm/code_806CD90.o(.text);
2022-01-07 23:32:32 -06:00
src/status_checks.o(.text);
2022-01-13 22:56:30 -05:00
asm/code_80701A4.o(.text);
src/status_checks_1.o(.text);
asm/code_8070B48.o(.text);
src/dungeon_capabilities.o(.text);
asm/code_8070BC0.o(.text);
src/dungeon_capabilities_1.o(.text);
asm/code_8070D04.o(.text);
src/dungeon_ai.o(.text);
asm/code_8071518.o(.text);
2021-12-13 23:22:03 -05:00
src/dungeon_ai_1.o(.text);
asm/code_807167C.o(.text);
src/dungeon_pokemon_attributes.o(.text);
asm/code_8071858.o(.text);
src/dungeon_pokemon_attributes_1.o(.text);
asm/code_80718D8.o(.text);
2021-11-13 19:59:20 -05:00
src/dungeon_ai_items.o(.text);
2021-12-26 00:03:03 -06:00
asm/code_8073CF0.o(.text);
src/dungeon_movement.o(.text);
asm/code_8075BA4.o(.text);
2021-12-27 23:21:11 -06:00
src/dungeon_ai_attack.o(.text);
asm/code_807CABC.o(.text);
2021-12-14 23:36:22 -05:00
src/dungeon_range.o(.text);
asm/code_808333C.o(.text);
src/dungeon_random.o(.text);
asm/code_808411C.o(.text);
src/dungeon_random_1.o(.text);
2021-12-24 17:45:49 -06:00
asm/code_808417C.o(.text);
src/code_80848F0.o(.text);
asm/code_80848F0.o(.text);
src/dungeon_util_1.o(.text);
asm/code_8085B0C.o(.text);
2021-06-28 14:28:21 -05:00
src/code_80869E4.o(.text);
asm/code_80869E4.o(.text);
src/code_8086A3C.o(.text);
asm/code_8086A3C.o(.text);
src/code_8057824_1.o(.text);
asm/jirachi_wish.o(.text);
2021-01-07 16:10:24 -06:00
src/code_80521D0_1.o(.text);
src/pokemon.o(.text);
asm/pokemon.o(.text);
src/pokemon_mid.o(.text);
asm/pokemon_2.o(.text);
src/pokemon_3.o(.text);
asm/pokemon_3.o(.text);
2020-06-02 14:56:12 -04:00
src/dungeon.o(.text);
asm/code_809017C.o(.text);
src/code_8090208.o(.text);
asm/code_8090208.o(.text);
src/items.o(.text);
src/rescue_team_info.o(.text);
src/text_util.o(.text);
src/friend_area.o(.text);
asm/friend_area_1.o(.text);
src/friend_area_1.o(.text);
2021-10-19 17:48:38 -07:00
src/moves.o(.text);
asm/moves_1.o(.text);
src/moves_1.o(.text);
asm/code_8094148.o(.text);
2022-01-06 23:11:38 -06:00
src/number_util.o(.text);
asm/code_809447C.o(.text);
2021-07-07 11:39:34 -05:00
src/code_8092334.o(.text);
src/game_options.o(.text);
asm/code_8094D28.o(.text);
src/play_time.o(.text);
2020-10-09 01:34:01 -05:00
src/code_8094F88.o(.text);
2020-10-15 11:50:49 -05:00
asm/code_8095014.o(.text);
src/code_80958E8.o(.text);
asm/code_80958E8.o(.text);
src/code_809747C.o(.text);
asm/code_809747C.o(.text);
src/code_809747C_1.o(.text);
src/code_8097670.o(.text);
asm/code_8097670.o(.text);
src/code_8097F40.o(.text);
src/exclusive_pokemon.o(.text);
asm/exclusive_pokemon.o(.text);
2021-07-07 11:39:34 -05:00
src/exclusive_pokemon_1.o(.text);
2022-01-08 00:08:00 -06:00
src/position_util.o(.text);
2020-09-16 11:58:10 -05:00
asm/code_8098468.o(.text);
2020-10-17 00:51:33 -05:00
src/code_8098BDC.o(.text);
asm/code_8098BDC.o(.text);
2020-11-05 22:27:43 -06:00
src/code_809D148.o(.text);
asm/code_809D148.o(.text);
asm/ground_script.o(.text);
2020-11-20 10:34:11 -06:00
src/code_80A26CC.o(.text);
2020-09-25 16:23:07 -05:00
asm/code_80A26CC.o(.text);
src/ground_map.o(.text);
asm/ground_map.o(.text);
asm/ground_sprite.o(.text);
2020-09-26 21:43:31 -05:00
src/code_80A7714.o(.text);
asm/ground_lives.o(.text);
asm/ground_object.o(.text);
asm/ground_effect.o(.text);
src/ground_link.o(.text);
asm/ground_link.o(.text);
asm/ground_event.o(.text);
asm/m4a_1.o(.text);
2019-08-11 14:31:39 +00:00
src/m4a.o(.text);
*libagbsyscall.a:CpuSet.o(.text);
*libagbsyscall.a:SoundBiasReset.o(.text);
*libagbsyscall.a:SoundBiasSet.o(.text);
*libagbsyscall.a:VBlankIntrWait.o(.text);
2017-12-10 22:41:46 -08:00
src/agb_flash.o(.text);
src/agb_flash_1m.o(.text);
src/agb_flash_mx.o(.text);
src/agb_flash_le.o(.text);
*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-10 22:41:46 -08:00
} =0
.rodata :
ALIGN(4)
{
data/data.o(.rodata);
2017-12-12 00:17:17 -08:00
src/file_system.o(.rodata);
data/data_80B9BB8.o(.rodata);
src/debug.o(.rodata);
src/save.o(.rodata);
data/data_80D47B8.o(.rodata);
src/wonder_mail.o(.rodata);
src/thank_you_wonder_mail.o(.rodata);
src/wonder_mail_2.o(.rodata);
data/data_80DED44.o(.rodata);
src/post_office_guide.o(.rodata);
data/data_80E1F30.o(.rodata);
src/adventure_log.o(.rodata);
data/data_80E2068.o(.rodata);
src/main_menu.o(.rodata);
data/data_80E59A8.o(.rodata);
src/load_screen.o(.rodata);
src/wonder_mail_main_menu.o(.rodata);
src/debug_menu.o(.rodata);
data/data_80E7D40.o(.rodata);
2021-12-22 17:00:21 -06:00
src/pokemon_mail.o(.rodata);
data/personality_test.o(.rodata);
src/personality_test.o(.rodata);
data/data_80F4278.o(.rodata);
2022-01-07 01:45:35 -06:00
src/dungeon_util.o(.rodata);
data/data_80F4468.o(.rodata);
src/dungeon_pokemon_attributes_1.o(.rodata);
data/data_80F59C8.o(.rodata);
src/charge_move.o(.rodata);
data/data_8106A4C.o(.rodata);
src/dungeon_ai_1.o(.rodata);
data/data_8107010.o(.rodata);
src/friend_area.o(.rodata);
data/data_810AC60.o(.rodata);
src/exclusive_pokemon.o(.rodata);
src/rescue_team_info.o(.rodata);
src/text_util.o(.rodata);
data/data_810AE24.o(.rodata);
2022-01-08 00:08:00 -06:00
src/position_util.o(.rodata);
data/data_8115EB8.o(.rodata);
data/friend_area_dialogue.o(.rodata);
data/cutscenes.o(.rodata);
data/cutscenes_1.o(.rodata);
src/m4a_tables.o(.rodata);
2017-12-10 22:41:46 -08:00
src/agb_flash.o(.rodata);
src/agb_flash_1m.o(.rodata);
src/agb_flash_mx.o(.rodata);
src/agb_flash_le.o(.rodata);
*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-16 21:43:34 -05:00
. = ALIGN(4);
2017-12-10 22:41:46 -08:00
data/data_8270000.o(.rodata);
} =0
unk_code_section :
ALIGN(4)
{
unk_code = .;
asm/code_8272724.o(.rodata);
2020-09-20 01:54:59 -05:00
src/code_8272724.o(.text);
2017-12-10 22:41:46 -08:00
asm/code_8272724.o(.text);
unk_code_end = .;
}
unk_code_section_size = (unk_code_end - unk_code);
unk_code_ram_end = unk_code_ram + unk_code_section_size;
2017-12-10 22:41:46 -08:00
end = unk_code_ram_end;
. = 0x8300000;
unk_data :
ALIGN(4)
{
data/unk_data.o(.rodata);
}
2017-12-11 02:23:26 -08: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-10 22:41:46 -08: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/ :
{
*(*);
}
}