pokeemerald/ld_script.txt

465 lines
14 KiB
Plaintext
Raw Normal View History

ENTRY(Start)
2016-09-03 10:11:14 +02:00
gNumMusicPlayers = 4;
2016-11-02 03:48:22 +01:00
gMaxLines = 0;
2016-09-03 10:11:14 +02:00
SECTIONS {
2016-11-01 19:35:16 +01:00
. = 0x2000000;
2016-09-03 10:11:14 +02:00
ewram (NOLOAD) :
ALIGN(4)
{
2017-09-05 13:01:24 +02:00
gHeap = .;
. = 0x1C000;
2016-11-01 19:35:16 +01:00
<EWRAM>
2017-09-05 13:01:24 +02:00
. = 0x40000;
}
2016-09-03 10:11:14 +02:00
. = 0x3000000;
iwram (NOLOAD) :
ALIGN(4)
{
2016-11-01 19:35:16 +01:00
/* .bss starts at 0x3000000 */
<BSS>
/* .bss.code starts at 0x3001AA8 */
2016-11-02 03:48:22 +01:00
src/m4a_2.o(.bss.code);
2016-11-01 19:35:16 +01:00
/* COMMON starts at 0x30022A8 */
<COMMON>
. = 0x8000;
2016-09-03 10:11:14 +02:00
}
. = 0x8000000;
2016-09-03 10:11:14 +02:00
.text :
ALIGN(4)
{
asm/crt0.o(.text);
2017-02-04 01:44:06 +01:00
src/main.o(.text);
2016-09-03 10:11:14 +02:00
src/malloc.o(.text);
src/dma3_manager.o(.text);
2016-09-03 10:11:14 +02:00
src/gpu_regs.o(.text);
2017-09-05 04:18:52 +02:00
src/bg.o(.text);
2016-11-01 18:08:48 +01:00
asm/blit.o(.text);
2017-03-30 02:02:15 +02:00
src/window.o(.text);
2017-03-07 14:44:41 +01:00
src/text.o(.text);
src/sprite.o(.text);
2017-01-14 20:53:20 +01:00
src/string_util.o(.text);
2016-11-01 18:08:48 +01:00
asm/link.o(.text);
2017-09-02 23:28:44 +02:00
src/rtc.o(.text);
2016-09-03 10:11:14 +02:00
asm/main_menu.o(.text);
2016-11-01 18:08:48 +01:00
asm/rom3.o(.text);
2017-09-02 19:55:39 +02:00
src/decompress.o(.text);
2017-09-17 03:32:37 +02:00
asm/battle_1.o(.text);
asm/battle_2.o(.text);
2017-09-17 14:10:32 +02:00
src/battle_3.o(.text);
2017-09-04 15:05:11 +02:00
src/battle_4.o(.text);
2017-09-01 23:40:13 +02:00
asm/battle_4.o(.text);
asm/battle_5.o(.text);
asm/battle_controller_player.o(.text);
asm/battle_7.o(.text);
asm/battle_controller_opponent.o(.text);
asm/battle_9.o(.text);
asm/battle_controller_linkopponent.o(.text);
2017-09-06 17:19:08 +02:00
src/pokemon_1.o(.text);
2016-11-01 18:08:48 +01:00
asm/pokemon_1.o(.text);
2017-09-04 21:43:13 +02:00
src/calculate_base_damage.o(.text);
2017-09-06 18:34:18 +02:00
src/pokemon_2.o(.text);
2016-11-01 18:08:48 +01:00
asm/pokemon_2.o(.text);
asm/pokemon_item_effect.o(.text);
2017-09-11 11:35:41 +02:00
src/pokemon_3.o(.text);
2017-01-16 02:14:00 +01:00
asm/pokemon_3.o(.text);
2017-08-31 16:48:24 +02:00
src/trig.o(.text);
2017-02-03 01:30:08 +01:00
src/rng.o(.text);
2017-09-13 12:58:57 +02:00
src/util.o(.text);
src/blend_palette.o(.text);
2016-11-01 18:08:48 +01:00
asm/daycare.o(.text);
src/egg_hatch.o(.text);
2017-09-17 03:32:37 +02:00
asm/battle_interface.o(.text);
2017-09-17 03:35:02 +02:00
asm/smokescreen.o(.text);
asm/pokeball.o(.text);
2017-09-04 18:26:39 +02:00
src/load_save.o(.text);
2016-11-01 18:08:48 +01:00
asm/load_save.o(.text);
asm/trade.o(.text);
asm/berry_blender.o(.text);
2017-08-31 16:48:24 +02:00
src/play_time.o(.text);
2017-09-03 22:50:17 +02:00
src/new_game.o(.text);
2016-11-01 18:08:48 +01:00
asm/rom4.o(.text);
asm/fieldmap.o(.text);
asm/metatile_behavior.o(.text);
asm/field_camera.o(.text);
asm/field_door.o(.text);
asm/field_player_avatar.o(.text);
2017-09-06 14:46:47 +02:00
src/field_map_obj.o(.text);
2016-11-01 18:08:48 +01:00
asm/field_ground_effect.o(.text);
asm/map_obj_8097404.o(.text);
asm/field_message_box.o(.text);
asm/map_obj_lock.o(.text);
2017-09-01 19:01:58 +02:00
src/text_window.o(.text);
2017-09-10 23:05:23 +02:00
src/script.o(.text);
2016-11-01 18:08:48 +01:00
asm/scrcmd.o(.text);
2017-01-16 02:14:00 +01:00
asm/field_control_avatar.o(.text);
2017-09-02 21:43:53 +02:00
src/event_data.o(.text);
2017-01-16 02:14:00 +01:00
asm/coord_event_weather.o(.text);
asm/field_tasks.o(.text);
asm/clock.o(.text);
2016-11-01 18:08:48 +01:00
asm/reset_rtc_screen.o(.text);
2017-09-05 13:01:24 +02:00
src/start_menu.o(.text);
2016-11-01 18:08:48 +01:00
asm/start_menu.o(.text);
asm/tileset.o(.text);
src/palette.o(.text);
2017-09-02 16:03:53 +02:00
src/sound.o(.text);
2017-01-16 02:14:00 +01:00
asm/battle_anim.o(.text);
asm/rom_80A5C6C.o(.text);
2016-10-31 09:14:22 +01:00
src/task.o(.text);
asm/reshow_battle_screen.o(.text);
2017-09-05 13:01:24 +02:00
asm/battle_anim_80A9C70.o(.text);
2016-11-01 18:08:48 +01:00
asm/title_screen.o(.text);
2017-09-17 03:32:37 +02:00
asm/field_screen.o(.text);
2016-11-01 18:08:48 +01:00
asm/battle_setup.o(.text);
asm/cable_club.o(.text);
asm/trainer_see.o(.text);
asm/fldeff_emotion.o(.text);
asm/wild_encounter.o(.text);
asm/field_effect.o(.text);
2017-01-16 02:14:00 +01:00
asm/unknown_task.o(.text);
2016-11-01 18:08:48 +01:00
asm/option_menu.o(.text);
asm/pokedex.o(.text);
asm/trainer_card.o(.text);
2017-09-17 03:32:37 +02:00
asm/pokemon_storage_system.o(.text);
2017-09-17 03:35:02 +02:00
asm/pokemon_icon.o(.text);
asm/script_movement.o(.text);
asm/fldeff_cut.o(.text);
asm/mail_data.o(.text);
asm/map_name_popup.o(.text);
asm/item_menu_icons.o(.text);
asm/battle_anim_80D51AC.o(.text);
2017-09-03 00:47:51 +02:00
src/item.o(.text);
2016-11-01 18:08:48 +01:00
asm/item.o(.text);
asm/contest.o(.text);
asm/shop.o(.text);
2017-09-12 18:47:27 +02:00
src/berry.o(.text);
2016-11-01 18:08:48 +01:00
asm/script_menu.o(.text);
asm/naming_screen.o(.text);
2017-09-09 00:45:25 +02:00
src/money.o(.text);
2016-11-01 18:08:48 +01:00
asm/money.o(.text);
asm/contest_effect.o(.text);
asm/record_mixing.o(.text);
asm/secret_base.o(.text);
asm/tv.o(.text);
asm/contest_link_80F57C4.o(.text);
asm/script_pokemon_util_80F87D8.o(.text);
asm/field_poison.o(.text);
2017-09-08 22:23:14 +02:00
src/pokemon_size_record.o(.text);
2016-11-01 18:08:48 +01:00
asm/fldeff_80F9BCC.o(.text);
2017-09-23 04:45:47 +02:00
src/field_special_scene.o(.text);
2016-11-01 18:08:48 +01:00
asm/rotating_gate.o(.text);
2017-09-09 15:45:50 +02:00
src/safari_zone.o(.text);
2016-11-01 18:08:48 +01:00
asm/contest_link_80FC4F4.o(.text);
asm/item_use.o(.text);
asm/battle_anim_80FE840.o(.text);
asm/bike.o(.text);
asm/easy_chat.o(.text);
asm/mon_markings.o(.text);
asm/mauville_old_man.o(.text);
asm/mail.o(.text);
asm/menu_helpers.o(.text);
asm/dewford_trend.o(.text);
asm/heal_location.o(.text);
asm/region_map.o(.text);
asm/cute_sketch.o(.text);
asm/decoration.o(.text);
asm/slot_machine.o(.text);
asm/contest_painting.o(.text);
2017-02-02 05:15:38 +01:00
src/battle_ai.o(.text);
2016-11-01 18:08:48 +01:00
asm/trader.o(.text);
asm/starter_choose.o(.text);
asm/wallclock.o(.text);
asm/rom6.o(.text);
asm/battle_records.o(.text);
asm/pokedex_area_screen.o(.text);
asm/evolution_scene.o(.text);
asm/roulette.o(.text);
asm/pokedex_cry_screen.o(.text);
2017-09-09 14:24:18 +02:00
src/coins.o(.text);
2016-11-01 18:08:48 +01:00
asm/coins.o(.text);
asm/landmark.o(.text);
asm/fldeff_strength.o(.text);
asm/battle_transition.o(.text);
2017-09-02 20:56:53 +02:00
asm/battle_controller_linkpartner.o(.text);
2016-11-01 18:08:48 +01:00
asm/battle_message.o(.text);
asm/cable_car.o(.text);
2017-09-17 03:32:37 +02:00
asm/math_util.o(.text);
2016-11-01 18:08:48 +01:00
asm/roulette_util.o(.text);
asm/cable_car_util.o(.text);
2017-09-03 14:13:01 +02:00
src/save.o(.text);
2016-11-01 18:08:48 +01:00
asm/save.o(.text);
asm/mystery_event_script.o(.text);
asm/field_effect_helpers.o(.text);
asm/contest_ai.o(.text);
2017-09-05 17:04:11 +02:00
asm/battle_anim_sound_tasks.o(.text);
2017-09-04 12:22:04 +02:00
asm/battle_controller_safari.o(.text);
asm/fldeff_sweetscent.o(.text);
2017-09-17 03:32:37 +02:00
asm/battle_anim_815A0D4.o(.text);
2017-09-17 03:35:02 +02:00
asm/learn_move.o(.text);
asm/fldeff_softboiled.o(.text);
2017-09-04 13:01:57 +02:00
asm/decoration_inventory.o(.text);
asm/roamer.o(.text);
2017-09-17 03:32:37 +02:00
asm/battle_tower.o(.text);
2017-09-17 03:35:02 +02:00
asm/use_pokeblock.o(.text);
2017-09-02 20:56:53 +02:00
asm/battle_controller_wally.o(.text);
2016-11-01 18:08:48 +01:00
asm/player_pc.o(.text);
asm/intro.o(.text);
2017-09-18 05:42:44 +02:00
src/reset_save_heap.o(.text);
2017-01-16 02:14:00 +01:00
asm/field_region_map.o(.text);
asm/battle_anim_8170478.o(.text);
asm/hall_of_fame.o(.text);
asm/credits.o(.text);
2017-09-08 18:48:55 +02:00
src/lottery_corner.o(.text);
2016-11-01 18:08:48 +01:00
asm/diploma.o(.text);
asm/berry_tag_screen.o(.text);
asm/mystery_event_menu.o(.text);
asm/save_failed_screen.o(.text);
2017-01-16 02:14:00 +01:00
asm/braille_puzzles.o(.text);
asm/pokeblock_feed.o(.text);
2016-11-01 18:08:48 +01:00
asm/clear_save_data_screen.o(.text);
2017-01-16 02:14:00 +01:00
asm/intro_credits_graphics.o(.text);
asm/evolution_graphics.o(.text);
asm/bard_music.o(.text);
asm/fldeff_teleport.o(.text);
2017-09-17 03:32:37 +02:00
asm/battle_link_817C95C.o(.text);
2017-09-04 13:23:40 +02:00
asm/pokemon_animation.o(.text);
asm/recorded_battle.o(.text);
2017-09-03 18:58:40 +02:00
asm/battle_controller_recorded_opponent.o(.text);
asm/battle_controller_recorded_player.o(.text);
2017-09-19 01:39:20 +02:00
src/battle_dome_cards.o(.text);
2017-09-19 22:17:23 +02:00
src/lilycove_lady.o(.text);
2017-09-17 03:32:37 +02:00
asm/battle_frontier_1.o(.text);
2017-09-17 03:35:02 +02:00
asm/new_menu_helpers.o(.text);
asm/menu.o(.text);
asm/battle_frontier_2.o(.text);
asm/item_menu.o(.text);
asm/list_menu.o(.text);
asm/menu_indicators.o(.text);
asm/unk_text_util.o(.text);
asm/save_location.o(.text);
asm/item_icon.o(.text);
asm/party_menu.o(.text);
asm/battle_tent.o(.text);
asm/unk_text_util_2.o(.text);
2017-01-14 02:40:03 +01:00
src/multiboot.o(.text);
2017-09-17 03:32:37 +02:00
asm/unk_81BAD84.o(.text);
2017-09-02 20:56:53 +02:00
asm/battle_controller_player_partner.o(.text);
2017-09-17 03:32:37 +02:00
asm/fldeff_groundshake.o(.text);
2017-09-17 03:35:02 +02:00
asm/fossil_specials.o(.text);
2017-09-18 14:52:57 +02:00
src/berry_fix_program.o(.text);
2017-09-17 03:35:02 +02:00
asm/pokemon_summary_screen.o(.text);
asm/pokenav.o(.text);
asm/rayquaza_scene.o(.text);
asm/walda_phrase.o(.text);
asm/contest_link_81D9DE4.o(.text);
asm/trainer_rematch.o(.text);
asm/unk_sprite_file.o(.text);
asm/unk_transition.o(.text);
asm/unk_transition_2.o(.text);
asm/international_string_util.o(.text);
2016-09-03 10:11:14 +02:00
} =0
script_data :
ALIGN(4)
{
2016-09-03 19:20:06 +02:00
data/event_scripts.o(script_data);
data/battle_anim_scripts.o(script_data);
data/battle_scripts_1.o(script_data);
data/field_effect_scripts.o(script_data);
data/battle_scripts_2.o(script_data);
data/battle_ai_scripts.o(script_data);
data/contest_ai_scripts.o(script_data);
data/script_funcs.o(script_data);
2016-09-03 10:11:14 +02:00
} =0
lib_text :
ALIGN(4)
{
asm/libgcnmultiboot.o(.text);
2016-11-02 03:48:22 +01:00
asm/m4a_1.o(.text);
src/m4a_2.o(.text);
asm/m4a_3.o(.text);
src/m4a_4.o(.text);
2016-11-01 20:15:48 +01:00
src/agb_flash.o(.text);
src/agb_flash_1m.o(.text);
src/agb_flash_mx.o(.text);
2016-11-02 22:06:41 +01:00
src/siirtc.o(.text);
2016-09-03 10:11:14 +02:00
asm/librfu.o(.text);
asm/libagbsyscall.o(.text);
2016-09-03 13:11:10 +02:00
tools/agbcc/lib/libgcc.a:_call_via_rX.o(.text);
tools/agbcc/lib/libgcc.a:_divdi3.o(.text);
tools/agbcc/lib/libgcc.a:_divsi3.o(.text);
tools/agbcc/lib/libgcc.a:_dvmd_tls.o(.text);
tools/agbcc/lib/libgcc.a:_fixunsdfsi.o(.text);
tools/agbcc/lib/libgcc.a:_fixunssfsi.o(.text);
tools/agbcc/lib/libgcc.a:_modsi3.o(.text);
tools/agbcc/lib/libgcc.a:_muldi3.o(.text);
tools/agbcc/lib/libgcc.a:_udivdi3.o(.text);
tools/agbcc/lib/libgcc.a:_udivsi3.o(.text);
tools/agbcc/lib/libgcc.a:_umodsi3.o(.text);
tools/agbcc/lib/libgcc.a:dp-bit.o(.text);
tools/agbcc/lib/libgcc.a:fp-bit.o(.text);
tools/agbcc/lib/libgcc.a:_lshrdi3.o(.text);
tools/agbcc/lib/libgcc.a:_negdi2.o(.text);
2016-11-01 16:17:40 +01:00
src/libc.o(.text);
2016-09-03 10:11:14 +02:00
} =0
.rodata :
ALIGN(4)
{
2017-02-04 01:44:06 +01:00
src/main.o(.rodata);
2017-09-10 03:52:33 +02:00
src/bg.o(.rodata);
2017-09-01 17:38:28 +02:00
src/window.o(.rodata);
2017-03-28 02:30:49 +02:00
src/text.o(.rodata);
2017-09-02 13:11:19 +02:00
src/sprite.o(.rodata);
data/io_reg.o(.rodata);
2017-01-15 00:17:51 +01:00
src/string_util.o(.rodata);
data/link.o(.rodata);
2017-09-02 23:37:06 +02:00
src/rtc.o(.rodata);
data/data2b.o(.rodata);
2017-09-04 15:05:11 +02:00
src/battle_4.o(.rodata);
data/battle_4.o(.rodata);
data/battle_controller_player.o(.rodata);
data/data2b_2.o(.rodata);
data/battle_controller_opponent.o(.rodata);
data/battle_controller_link_opponent.o(.rodata);
data/data2c.o(.rodata);
2017-08-31 16:48:24 +02:00
src/trig.o(.rodata);
2017-09-13 12:58:57 +02:00
src/util.o(.rodata);
2017-08-31 16:48:24 +02:00
data/data3.o(.rodata);
2017-09-19 14:27:46 +02:00
src/egg_hatch.o(.rodata);
2017-09-20 13:12:43 +02:00
data/data3_a0_A.o(.rodata);
data/field_map_obj.o(.rodata);
2017-09-20 13:12:43 +02:00
data/data3_a0_B.o(.rodata);
2017-09-13 11:16:26 +02:00
src/berry.o(.rodata);
2017-09-12 18:47:27 +02:00
data/data3_a1.o(.rodata);
2017-09-08 22:23:14 +02:00
src/pokemon_size_record.o(.rodata)
data/data3b.o(.rodata);
2017-09-05 09:41:48 +02:00
src/battle_ai.o(.rodata);
data/data4.o(.rodata);
2017-09-04 15:05:11 +02:00
data/battle_controller_link_partner.o(.rodata);
2017-01-16 07:38:56 +01:00
data/battle_message.o(.rodata);
data/cable_car.o(.rodata);
data/save.o(.rodata);
data/field_effect_helpers.o(.rodata);
data/contest_ai.o(.rodata);
2017-09-04 15:05:11 +02:00
data/battle_controller_safari.o(.rodata);
2017-01-16 07:38:56 +01:00
data/rom_8158B30.o(.rodata);
2017-09-04 15:05:11 +02:00
data/battle_controller_wally.o(.rodata);
2017-01-16 07:38:56 +01:00
data/player_pc.o(.rodata);
data/intro.o(.rodata);
data/field_region_map.o(.rodata);
data/battle_anim_8170478.o(.rodata);
data/hall_of_fame.o(.rodata);
data/credits.o(.rodata);
2017-09-08 18:48:55 +02:00
src/lottery_corner.o(.rodata);
2017-01-14 10:54:02 +01:00
data/diploma.o(.rodata);
data/strings.o(.rodata);
data/berry_tag_screen.o(.rodata);
data/mystery_event_menu.o(.rodata);
data/save_failed_screen.o(.rodata);
2017-01-16 07:38:56 +01:00
data/braille_puzzles.o(.rodata);
data/pokeblock_feed.o(.rodata);
data/clear_save_data_screen.o(.rodata);
data/intro_credits_graphics.o(.rodata);
data/evolution_graphics.o(.rodata);
data/bard_music.o(.rodata);
data/data_860A4AC.o(.rodata);
2017-09-04 15:39:20 +02:00
data/battle_controller_recorded_opponent.o(.rodata);
data/battle_controller_recorded_player.o(.rodata);
src/battle_dome_cards.o(.rodata);
2017-09-21 04:01:28 +02:00
src/lilycove_lady.o(.rodata);
2017-09-21 19:28:02 +02:00
data/battle_frontier_1.o(.rodata);
data/new_menu_helpers.o(.rodata);
data/battle_frontier_2.o(.rodata);
data/item_menu.o(.rodata);
data/menu_indicators.o(.rodata);
data/save_location.o(.rodata);
data/item_icon.o(.rodata);
data/party_menu.o(.rodata);
data/battle_tent.o(.rodata);
data/unk_text_util_2.o(.rodata);
data/unk_81BAD84.o(.rodata);
2017-09-04 15:39:20 +02:00
data/battle_controller_player_partner.o(.rodata);
2017-09-21 19:51:32 +02:00
data/fossil_special_fldeff_groundshake.o(.rodata);
2017-09-18 21:10:25 +02:00
src/berry_fix_program.o(.rodata);
2017-09-21 19:51:32 +02:00
data/pokemon_summary_screen.o(.rodata);
data/pokenav.o(.rodata);
data/rayquaza_scene.o(.rodata);
data/walda_phrase.o(.rodata);
data/trainer_rematch.o(.rodata);
data/unk_sprite_file.o(.rodata);
data/unk_transition.o(.rodata);
data/link_strings.o(.rodata);
2017-01-16 07:38:56 +01:00
data/fonts.o(.rodata);
data/mystery_event_msg.o(.rodata);
2016-11-02 03:48:22 +01:00
src/m4a_tables.o(.rodata);
2016-09-03 18:25:58 +02:00
data/sound_data.o(.rodata);
2016-09-03 10:11:14 +02:00
} =0
2016-09-03 13:11:10 +02:00
lib_rodata :
2017-07-29 02:53:49 +02:00
SUBALIGN(4)
2016-09-03 13:11:10 +02:00
{
2016-11-01 20:15:48 +01:00
src/agb_flash.o(.rodata);
src/agb_flash_1m.o(.rodata);
src/agb_flash_mx.o(.rodata);
src/agb_flash_le.o(.rodata);
2016-11-02 22:06:41 +01:00
src/siirtc.o(.rodata);
2016-09-03 13:29:59 +02:00
data/librfu_rodata.o(.rodata);
2016-09-03 13:11:10 +02:00
tools/agbcc/lib/libgcc.a:_divdi3.o(.rodata);
tools/agbcc/lib/libgcc.a:_udivdi3.o(.rodata);
} =0
other_data :
ALIGN(4)
{
data/unknown_serial_data.o(.rodata);
data/multiboot_berry_glitch_fix.o(.rodata);
data/multiboot_pokemon_colosseum.o(.rodata);
} =0
2016-09-03 12:03:50 +02:00
gap1 :
{
gap1_start = ABSOLUTE(.);
BYTE(0x00)
. = 0x8B00000 - gap1_start;
} =0
anim_mon_front_pic_data :
ALIGN(4)
{
data/anim_mon_front_pics.o(anim_mon_front_pic_data);
} =0
gap2 :
{
gap2_start = ABSOLUTE(.);
BYTE(0x00)
. = 0x8C00000 - gap2_start;
} =0
gfx_data :
ALIGN(4)
{
data/graphics.o(gfx_data);
} =0
2016-09-03 10:11:14 +02:00
/* Discard everything not specifically mentioned above. */
/DISCARD/ :
{
*(*);
}
}