diff options
Diffstat (limited to 'ld_script.txt')
-rw-r--r-- | ld_script.txt | 114 |
1 files changed, 58 insertions, 56 deletions
diff --git a/ld_script.txt b/ld_script.txt index 489148b74..1cadbef7d 100644 --- a/ld_script.txt +++ b/ld_script.txt @@ -21,6 +21,7 @@ SECTIONS { { /* .bss starts at 0x3000000 */ INCLUDE "sym_bss.ld" + *(.bss); /* .bss.code starts at 0x3000F60 */ src/libs/m4a.o(.bss.code); @@ -28,6 +29,7 @@ SECTIONS { /* COMMON starts at 0x3001760 */ INCLUDE "sym_common.ld" *libc.a:sbrkr.o(COMMON); + *(COMMON); end = .; . = 0x8000; } @@ -48,17 +50,17 @@ SECTIONS { src/rom3.o(.text); src/decompress.o(.text); asm/decompress.o(.text); - src/battle/battle_bg.o(.text); - src/battle/battle_2.o(.text); - src/battle/battle_util.o(.text); - src/battle/battle_4.o(.text); - src/battle/battle_controller_player.o(.text); - src/battle/battle_7.o(.text); - src/battle/battle_controller_opponent.o(.text); - src/battle/battle_ai_switch_items.o(.text); - src/battle/battle_controller_linkopponent.o(.text); + src/battle_bg.o(.text); + src/battle_main.o(.text); + src/battle_util.o(.text); + src/battle_script_commands.o(.text); + src/battle_controller_player.o(.text); + src/battle_gfx_sfx_util.o(.text); + src/battle_controller_opponent.o(.text); + src/battle_ai_switch_items.o(.text); + src/battle_controller_link_opponent.o(.text); src/pokemon_1.o(.text); - src/battle/calculate_base_damage.o(.text); + src/calculate_base_damage.o(.text); src/pokemon_2.o(.text); src/pokemon_item_effect.o(.text); src/pokemon_3.o(.text); @@ -69,9 +71,9 @@ SECTIONS { src/blend_palette.o(.text); src/daycare.o(.text); src/egg_hatch.o(.text); - src/battle/battle_interface.o(.text); - src/battle/smokescreen.o(.text); - src/battle/pokeball.o(.text); + src/battle_interface.o(.text); + src/smokescreen.o(.text); + src/pokeball.o(.text); src/load_save.o(.text); src/trade.o(.text); src/berry_blender.o(.text); @@ -102,17 +104,17 @@ SECTIONS { src/tileset_anim.o(.text); src/palette.o(.text); src/sound.o(.text); - src/battle/battle_anim.o(.text); + src/battle_anim.o(.text); src/rom_8077ABC.o(.text); src/task.o(.text); - src/battle/reshow_battle_screen.o(.text); - src/battle/battle_anim_807B69C.o(.text); + src/reshow_battle_screen.o(.text); + src/battle_anim_status_effects.o(.text); src/title_screen.o(.text); src/field_weather.o(.text); src/field_weather_effects.o(.text); src/field_fadetransition.o(.text); src/field_screen_effect.o(.text); - src/battle/battle_setup.o(.text); + src/battle_setup.o(.text); src/cable_club.o(.text); src/debug/tomomichi_debug_menu.o(.text); src/debug/nohara_debug_menu.o(.text); @@ -127,7 +129,7 @@ SECTIONS { src/pokedex.o(.text); src/trainer_card.o(.text); src/save_menu_util.o(.text); - src/battle/battle_party_menu.o(.text); + src/battle_party_menu.o(.text); src/unk_text_8095904.o(.text); src/pokemon_storage_system.o(.text); src/pokemon_storage_system_2.o(.text); @@ -141,7 +143,7 @@ SECTIONS { src/mail_data.o(.text); src/map_name_popup.o(.text); src/item_menu.o(.text); - src/battle/battle_anim_80A7E7C.o(.text); + src/battle_anim_mon_movement.o(.text); src/item.o(.text); src/debug/matsuda_debug_menu.o(.text); src/debug/crash.o(.text); @@ -158,7 +160,7 @@ SECTIONS { src/debug/sound_check_menu.o(.text); src/secret_base.o(.text); src/tv.o(.text); - src/battle/contest_link_80C2020.o(.text); + src/contest_link_80C2020.o(.text); src/script_pokemon_util_80C4BF0.o(.text); src/field_poison.o(.text); src/pokemon_size_record.o(.text); @@ -172,7 +174,7 @@ SECTIONS { src/field_special_scene.o(.text); src/rotating_gate.o(.text); src/safari_zone.o(.text); - src/battle/contest_link_80C857C.o(.text); + src/contest_link_80C857C.o(.text); src/item_use.o(.text); src/battle/anim/powder.o(.text); src/battle/anim/orbs.o(.text); @@ -307,19 +309,19 @@ SECTIONS { src/decoration.o(.text); src/slot_machine.o(.text); src/contest_painting.o(.text); - src/battle/battle_ai.o(.text); + src/battle_ai_script_commands.o(.text); src/trader.o(.text); src/starter_choose.o(.text); src/wallclock.o(.text); src/rom6.o(.text); src/pokeblock.o(.text); src/fldeff_flash.o(.text); - src/battle/post_battle_event_funcs.o(.text); + src/post_battle_event_funcs.o(.text); src/time_events.o(.text); src/birch_pc.o(.text); src/hof_pc.o(.text); src/field_specials.o(.text); - src/battle/battle_records.o(.text); + src/battle_records.o(.text); src/pokedex_area_screen.o(.text); src/evolution_scene.o(.text); src/roulette.o(.text); @@ -328,9 +330,9 @@ SECTIONS { src/coins.o(.text); src/landmark.o(.text); src/fldeff_strength.o(.text); - src/battle/battle_transition.o(.text); - src/battle/battle_controller_linkpartner.o(.text); - src/battle/battle_message.o(.text); + src/battle_transition.o(.text); + src/battle_controller_link_partner.o(.text); + src/battle_message.o(.text); src/choose_party.o(.text); src/cable_car.o(.text); src/roulette_util.o(.text); @@ -343,20 +345,20 @@ SECTIONS { src/contest_ai.o(.text); src/unused_81258BC.o(.text); src/battle/anim/sfx.o(.text); - src/battle/battle_controller_safari.o(.text); + src/battle_controller_safari.o(.text); src/fldeff_sweetscent.o(.text); - src/battle/battle_anim_812C144.o(.text); + src/battle_anim_effects_3.o(.text); src/move_tutor_menu.o(.text); src/fldeff_softboiled.o(.text); src/decoration_inventory.o(.text); src/roamer.o(.text); src/battle_tower.o(.text); src/use_pokeblock.o(.text); - src/battle/battle_controller_wally.o(.text); + src/battle_controller_wally.o(.text); src/player_pc.o(.text); src/intro.o(.text); src/field_region_map.o(.text); - src/battle/battle_anim_813F0F4.o(.text); + src/battle_anim_special.o(.text); src/hall_of_fame.o(.text); src/credits.o(.text); src/lottery_corner.o(.text); @@ -466,19 +468,19 @@ SECTIONS { src/main_menu.o(.rodata); data/mon_attrs.o(.rodata); src/battle/battle_1.o(.rodata); - src/battle/battle_bg.o(.rodata); + src/battle_bg.o(.rodata); data/btl_attrs.o(.rodata); - src/battle/battle_4.o(.rodata); - src/battle/battle_controller_player.o(.rodata); + src/battle_script_commands.o(.rodata); + src/battle_controller_player.o(.rodata); data/smokescreen.o(.rodata); /* why is smokescreen rodata way up here and not in the correct location? */ data/battle_7.o(.rodata); - src/battle/battle_controller_opponent.o(.rodata); - src/battle/battle_controller_linkopponent.o(.rodata); + src/battle_controller_opponent.o(.rodata); + src/battle_controller_link_opponent.o(.rodata); src/data/battle_moves.o(.rodata); - src/battle/battle_util.o(.rodata); + src/battle_util.o(.rodata); src/pokemon_1.o(.rodata); src/pokemon_1.o(.data); /* gEvolutionTable needs to be non-const to match */ - src/battle/calculate_base_damage.o(.rodata); + src/calculate_base_damage.o(.rodata); src/pokemon_2.o(.rodata); src/pokemon_item_effect.o(.rodata); src/pokemon_3.o(.rodata); @@ -487,9 +489,9 @@ SECTIONS { src/util.o(.rodata); src/daycare.o(.rodata); src/egg_hatch.o(.rodata); - src/battle/battle_7.o(.rodata); - src/battle/battle_interface.o(.rodata); - src/battle/pokeball.o(.rodata); + src/battle_gfx_sfx_util.o(.rodata); + src/battle_interface.o(.rodata); + src/pokeball.o(.rodata); src/trade.o(.rodata); src/berry_blender.o(.rodata); src/new_game.o(.rodata); @@ -515,7 +517,7 @@ SECTIONS { src/tileset_anim.o(.rodata); src/palette.o(.rodata); src/sound.o(.rodata); - src/battle/battle_anim.o(.rodata); + src/battle_anim.o(.rodata); src/rom_8077ABC.o(.rodata); data/map_events.o(.rodata); data/unused_orb.o(.rodata); /* these files are clearly the rodata for latter part of rom_8077ABC, but the linker linked map_events before these objects for some reason. perhaps it was compiling and linking 2 folders at the same time? */ @@ -525,12 +527,12 @@ SECTIONS { data/unused_hit.o(.rodata); data/unused_orb2.o(.rodata); src/task.o(.rodata); - src/battle/battle_anim_807B69C.o(.rodata); + src/battle_anim_status_effects.o(.rodata); src/title_screen.o(.rodata); src/field_weather.o(.rodata); src/field_weather_effects.o(.rodata); src/field_screen_effect.o(.rodata); - src/battle/battle_setup.o(.rodata); + src/battle_setup.o(.rodata); src/cable_club.o(.rodata); src/debug/tomomichi_debug_menu.o(.rodata); src/debug/nohara_debug_menu.o(.rodata); @@ -543,7 +545,7 @@ SECTIONS { src/option_menu.o(.rodata); src/pokedex.o(.rodata); src/trainer_card.o(.rodata); - src/battle/battle_party_menu.o(.rodata); + src/battle_party_menu.o(.rodata); src/pokemon_storage_system.o(.rodata); src/pokemon_storage_system_2.o(.rodata); src/pokemon_storage_system_3.o(.rodata); @@ -554,7 +556,7 @@ SECTIONS { src/fldeff_cut.o(.rodata); src/debug/kagaya_debug_menu.o(.rodata); src/item_menu.o(.rodata); - src/battle/battle_anim_80A7E7C.o(.rodata); + src/battle_anim_mon_movement.o(.rodata); src/item.o(.rodata); src/debug/matsuda_debug_menu.o(.rodata); data/contest.o(.rodata); @@ -572,7 +574,7 @@ SECTIONS { src/debug/sound_check_menu.o(.rodata); src/secret_base.o(.rodata); src/tv.o(.rodata); - src/battle/contest_link_80C2020.o(.rodata); + src/contest_link_80C2020.o(.rodata); src/pokemon_size_record.o(.rodata); src/pc_screen_effect.o(.rodata); src/pc_screen_effect.o(.data); @@ -705,7 +707,7 @@ SECTIONS { src/decoration.o(.rodata); src/slot_machine.o(.rodata); src/contest_painting.o(.rodata); - src/battle/battle_ai.o(.rodata); + src/battle_ai_script_commands.o(.rodata); src/trader.o(.rodata); src/starter_choose.o(.rodata); src/wallclock.o(.rodata); @@ -713,7 +715,7 @@ SECTIONS { src/fldeff_flash.o(.rodata); src/time_events.o(.rodata); src/field_specials.o(.rodata); - src/battle/battle_records.o(.rodata); + src/battle_records.o(.rodata); src/pokedex_area_screen.o(.rodata); src/evolution_scene.o(.rodata); src/roulette.o(.rodata); @@ -721,26 +723,26 @@ SECTIONS { src/pokedex_cry_screen.o(.rodata); src/pokedex_cry_screen.o(.data); src/landmark.o(.rodata); - src/battle/battle_transition.o(.rodata); - src/battle/battle_controller_linkpartner.o(.rodata); - src/battle/battle_message.o(.rodata); + src/battle_transition.o(.rodata); + src/battle_controller_link_partner.o(.rodata); + src/battle_message.o(.rodata); src/choose_party.o(.rodata); src/cable_car.o(.rodata); src/save.o(.rodata); src/debug/ereader_debug_menu.o(.rodata); src/field_effect_helpers.o(.rodata); src/contest_ai.o(.rodata); - src/battle/battle_controller_safari.o(.rodata); - src/battle/battle_anim_812C144.o(.rodata); + src/battle_controller_safari.o(.rodata); + src/battle_anim_effects_3.o(.rodata); src/move_tutor_menu.o(.rodata); src/decoration_inventory.o(.rodata); src/roamer.o(.rodata); src/battle_tower.o(.rodata); src/use_pokeblock.o(.rodata); - src/battle/battle_controller_wally.o(.rodata); + src/battle_controller_wally.o(.rodata); src/player_pc.o(.rodata); src/intro.o(.rodata); - src/battle/battle_anim_813F0F4.o(.rodata); + src/battle_anim_special.o(.rodata); src/hall_of_fame.o(.rodata); src/credits.o(.rodata); src/lottery_corner.o(.rodata); |