From 1b335a770b90e7bc43c02776f2f3afb2402e254a Mon Sep 17 00:00:00 2001 From: rozlette Date: Sun, 15 Mar 2020 22:05:06 -0500 Subject: [PATCH] Split code .data --- linker_scripts/code_script.txt | 75 ++++++++++++++++++++++++++++++++- tables/objects.txt | 77 +++++++++++++++++++++++++++++++++- 2 files changed, 150 insertions(+), 2 deletions(-) diff --git a/linker_scripts/code_script.txt b/linker_scripts/code_script.txt index d9026c8d16..d12da83349 100644 --- a/linker_scripts/code_script.txt +++ b/linker_scripts/code_script.txt @@ -454,7 +454,80 @@ SECTIONS code_text_end = .; code_data_start = .; - build/asm/code_data.o(.text) + build/asm/code_data_0x801AAAB0.o(.text) + build/asm/code_data_0x800A5AC0.o(.text) + build/asm/code_data_z_en_item00.o(.text) + build/asm/code_data_z_eff_blure.o(.text) + build/asm/code_data_z_eff_shield_particle.o(.text) + build/asm/code_data_0x800AF710.o(.text) + build/asm/code_data_z_effect_soft_sprite.o(.text) + build/asm/code_data_z_effect_soft_sprite_old_init.o(.text) + build/asm/code_data_flg_set_table.o(.text) + build/asm/code_data_flg_set.o(.text) + build/asm/code_data_z_actor.o(.text) + build/asm/code_data_0x800BF9A0.o(.text) + build/asm/code_data_z_bgcheck.o(.text) + build/asm/code_data_z_camera.o(.text) + build/asm/code_data_z_collision_check.o(.text) + build/asm/code_data_z_debug_display.o(.text) + build/asm/code_data_z_debug_mode.o(.text) + build/asm/code_data_z_draw.o(.text) + build/asm/code_data_z_eff_footmark.o(.text) + build/asm/code_data_0x800F07C0.o(.text) + build/asm/code_data_0x800F1460.o(.text) + build/asm/code_data_z_fireobj.o(.text) + build/asm/code_data_0x801BD910.o(.text) + build/asm/code_data_z_horse.o(.text) + build/asm/code_data_z_jpeg.o(.text) + build/asm/code_data_z_kanfont.o(.text) + build/asm/code_data_z_kankyo.o(.text) + build/asm/code_data_z_lib.o(.text) + build/asm/code_data_z_lifemeter.o(.text) + build/asm/code_data_z_lights.o(.text) + build/asm/code_data_z_map_disp.o(.text) + build/asm/code_data_z_map_exp.o(.text) + build/asm/code_data_z_msgevent.o(.text) + build/asm/code_data_z_parameter.o(.text) + build/asm/code_data_z_player_lib.o(.text) + build/asm/code_data_0x8012A080.o(.text) + build/asm/code_data_z_rcp.o(.text) + build/asm/code_data_z_room.o(.text) + build/asm/code_data_0x801C1D30.o(.text) + build/asm/code_data_z_scene.o(.text) + build/asm/code_data_0x801C2730.o(.text) + build/asm/code_data_z_scene_proc.o(.text) + build/asm/code_data_z_scene_table.o(.text) + build/asm/code_data_0x801323D0.o(.text) + build/asm/code_data_z_skelanime.o(.text) + build/asm/code_data_0x80138BA0.o(.text) + build/asm/code_data_z_sub_s.o(.text) + build/asm/code_data_z_vimode.o(.text) + build/asm/code_data_z_vr_box.o(.text) + build/asm/code_data_z_vr_box_draw.o(.text) + build/asm/code_data_z_sram_NES.o(.text) + build/asm/code_data_z_message_nes.o(.text) + build/asm/code_data_0x80160A90.o(.text) + build/asm/code_data_z_kaleido_manager.o(.text) + build/asm/code_data_0x80163C90.o(.text) + build/asm/code_data_z_fbdemo.o(.text) + build/asm/code_data_z_fbdemo_circle.o(.text) + build/asm/code_data_z_play.o(.text) + build/asm/code_data_z_play_hireso.o(.text) + build/asm/code_data_0x80172C30.o(.text) + build/asm/code_data_game.o(.text) + build/asm/code_data_graph.o(.text) + build/asm/code_data_padmgr.o(.text) + build/asm/code_data_speed_meter.o(.text) + build/asm/code_data_0x80179300.o(.text) + build/asm/code_data_0x801D15B0.o(.text) + build/asm/code_data_0x8017FEB0.o(.text) + build/asm/code_data_sys_matrix.o(.text) + build/asm/code_data_0x80182CE0.o(.text) + build/asm/code_data_0x8018B0F0.o(.text) + build/asm/code_data_0x80194930.o(.text) + build/asm/code_data_0x8019AF00.o(.text) + build/asm/code_data_0x801A51F0.o(.text) + build/asm/code_data_0x801A5BD0.o(.text) code_data_end = .; code_rodata_start = .; diff --git a/tables/objects.txt b/tables/objects.txt index ab28e9beca..82d493a439 100644 --- a/tables/objects.txt +++ b/tables/objects.txt @@ -390,7 +390,82 @@ 0x801AA020:"", 0x801AA610:"", 0x801AAAA0:"", - 0x801AAAB0:"code_data", + + 0x801AAAB0:"code_data_0x801AAAB0", + 0x801ADE60:"code_data_0x800A5AC0", + 0x801ADEC0:"code_data_z_en_item00", + 0x801AE240:"code_data_z_eff_blure", + 0x801AE2F0:"code_data_z_eff_shield_particle", + 0x801AE330:"code_data_0x800AF710", + 0x801AE3A0:"code_data_z_effect_soft_sprite", + 0x801AE3B0:"code_data_z_effect_soft_sprite_old_init", + 0x801AE8F0:"code_data_flg_set_table", + 0x801AEC70:"code_data_flg_set", + 0x801AEC80:"code_data_z_actor", + 0x801B4610:"code_data_0x800BF9A0", + 0x801B4620:"code_data_z_bgcheck", + 0x801B4710:"code_data_z_camera", + 0x801B9F20:"code_data_z_collision_check", + 0x801BA550:"code_data_z_debug_display", + 0x801BB090:"code_data_z_debug_mode", + 0x801BB170:"code_data_z_draw", + 0x801BC240:"code_data_z_eff_footmark", + 0x801BC2A0:"code_data_0x800F07C0", + 0x801BD830:"code_data_0x800F1460", + 0x801BD8d0:"code_data_z_fireobj", + 0x801BD910:"code_data_0x801BD910", + 0x801BDA70:"code_data_z_horse", + 0x801BDAC0:"code_data_z_jpeg", + 0x801BDB30:"code_data_z_kanfont", + 0x801BDB90:"code_data_z_kankyo", + 0x801BE960:"code_data_z_lib", + 0x801BE990:"code_data_z_lifemeter", + 0x801BEAB0:"code_data_z_lights", + 0x801BEAD0:"code_data_z_map_disp", # z_map_data is somewhere in here + 0x801BF550:"code_data_z_map_exp", + 0x801BF5C0:"code_data_z_msgevent", + 0x801BF6C0:"code_data_z_parameter", + 0x801BFDD0:"code_data_z_player_lib", + 0x801C0EC0:"code_data_0x8012A080", + 0x801C0EF0:"code_data_z_rcp", + 0x801C1D10:"code_data_z_room", + 0x801C1D30:"code_data_0x801C1D30", + 0x801C20A0:"code_data_z_scene", # bit of a guess + 0x801C2730:"code_data_0x801C2730", + 0x801C3B60:"code_data_z_scene_proc", + 0x801C3CA0:"code_data_z_scene_table", + 0x801C5C50:"code_data_0x801323D0", + 0x801C5CB0:"code_data_z_skelanime", + 0x801C5CD0:"code_data_0x80138BA0", + 0x801C5D10:"code_data_z_sub_s", + 0x801C5DD0:"code_data_z_vimode", + 0x801C5E30:"code_data_z_vr_box", + 0x801C5FC0:"code_data_z_vr_box_draw", + 0x801C67B0:"code_data_z_sram_NES", + 0x801D0470:"code_data_z_message_nes", + 0x801D0B50:"code_data_0x80160A90", + 0x801D0B70:"code_data_z_kaleido_manager", + 0x801D0BB0:"code_data_0x80163C90", + 0x801D0C80:"code_data_z_fbdemo", + 0x801D0D00:"code_data_z_fbdemo_circle", + 0x801D0D50:"code_data_z_play", + 0x801D0D80:"code_data_z_play_hireso", + 0x801D14F0:"code_data_0x80172C30", + 0x801D1500:"code_data_game", + 0x801D1520:"code_data_graph", + 0x801D1530:"code_data_padmgr", + 0x801D1540:"code_data_speed_meter", + 0x801D1570:"code_data_0x80179300", + 0x801D15B0:"code_data_0x801D15B0", + 0x801D15D0:"code_data_0x8017FEB0", + 0x801D1DE0:"code_data_sys_matrix", + 0x801D1E70:"code_data_0x80182CE0", + 0x801D2E80:"code_data_0x8018B0F0", + 0x801D3D90:"code_data_0x80194930", + 0x801D55B0:"code_data_0x8019AF00", + 0x801D8E50:"code_data_0x801A51F0", + 0x801D9090:"code_data_0x801A5BD0", + 0x801DBDF0:"code_rodata_z_en_item00", 0x801DC080:"code_rodata_z_eff_blure", 0x801DC0B0:"code_rodata_z_eff_shield_particle",