From c6fb5665d4a311f0291735c547a01b53afb29e6a Mon Sep 17 00:00:00 2001 From: Zach Banks Date: Tue, 18 May 2021 17:35:22 -0400 Subject: [PATCH] Split code BSS segment by file (#140) Discussed on Discord: https://discord.com/channels/688807550715560050/688851976746041391/843916746989633547 --- linker_scripts/code_script.txt | 50 +++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/linker_scripts/code_script.txt b/linker_scripts/code_script.txt index 7ea045f3c4..0cd2298eba 100644 --- a/linker_scripts/code_script.txt +++ b/linker_scripts/code_script.txt @@ -652,7 +652,55 @@ SECTIONS _codeSegmentEnd = SegmentEnd; code_bss_start = .; - . += 0x24F00; + . += 0x10; + . += 0x98F0; /* code_0x800AF710 */ + . += 0x90; /* z_actor */ + . += 0x20; /* z_actor_dlftbls */ + . += 0x2A0; /* z_bgcheck */ + . += 0x210; /* z_camera */ + . += 0x1870; /* z_collision_check */ + . += 0x48D0; /* code_0x800E9360 */ + . += 0x20; + . += 0x10; /* z_debug */ + . += 0x10; /* z_debug_display */ + . += 0xE70; /* z_debug_mode */ + . += 0x40; /* code_0x800F1460 */ + . += 0x110; /* z_kankyo */ + . += 0x30; /* z_lifemeter */ + . += 0x190; /* z_lights */ + . += 0x30; /* code_0x80102C60 */ + . += 0x710; /* z_map_disp */ + . += 0x10; /* code_0x8010C0C0 */ + . += 0x60; /* z_parameter */ + . += 0x150; /* z_player_lib */ + . += 0xA0; /* code_0x8012A080 */ + . += 0x10; /* z_scene_proc */ + . += 0x10; /* z_skelanime */ + . += 0xF10; /* z_skin */ + . += 0x110; + . += 0x10; /* z_vr_box_draw */ + . += 0x10; /* z_sram_NES */ + . += 0x30; /* z_message */ + . += 0x10; /* code_0x80160A90 */ + . += 0x10; /* z_shrink_window */ + . += 0xA0; /* code_0x80161180 */ + . += 0x10; /* z_kaleido_manager */ + . += 0x10; /* code_0x801639A0 */ + . += 0x1F0; /* z_play */ + . += 0x11F0; /* PreRender */ + . += 0xE0; /* game */ + . += 0x90; /* graph */ + . += 0x31E0; /* main */ + . += 0x760; + . += 0x90; /* sched */ + . += 0x50; + . += 0x70; /* sys_cmpdma */ + . += 0x210; /* code_0x801795F0 */ + . += 0x10; /* sys_matrix */ + . += 0x1230; /* sys_flashrom */ + . += 0xE0; /* code_0x80185F90 */ + . += 0xBD70; /* code_0x8018B0F0 */ + . += 0x10; /* code_0x801AA020 */ code_bss_end = .; buffers ALIGN(0x10):