Merge pull request #37 from ethteck/splat

Further LD improvements
This commit is contained in:
Ethan Roseman 2020-08-20 16:39:31 -04:00 committed by GitHub
commit d5a453b2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 67 deletions

View File

@ -5,17 +5,13 @@ SECTIONS
build/asm/header.o(.text0_header);
}
/* 0xA4000040 40-B70 (len B30) */
/* 0xA4000040 40-1000 (len FC0) */
.text40_boot 0xA4000040 : AT(0x40) {
build/asm/boot.o(.text40_boot);
}
/* 0x00000000 B70-1000 [490] */
.data_bootcode_font 0xB70 : AT(0xB70) {
build/bin/bootcode_font.o(.data);
}
/* 0x80025C00 1000-4E5A0 (len 4D5A0) */
/* 0x80025C00 1000-759B0 (len 749B0) */
.text1000_code 0x80025C00 : AT(0x1000) {
build/src/code_1000_len_60.o(.text);
build/src/code_1060_len_310.o(.text);
@ -182,14 +178,10 @@ SECTIONS
build/src/os/code_4a1f0_len_170.o(.text);
build/src/os/code_4a360_len_930.o(.text);
build/src/os/code_4ac90_len_3910.o(.text);
build/bin/code_4E5A0.o(.data);
}
/* 0x00000000 4E5A0-759B0 [27410] */
.data_4E5A0 0x4E5A0 : AT(0x4E5A0) {
build/bin/4E5A0.o(.data);
}
/* 0x800DC500 759B0-90FE0 (len 1B630) */
/* 0x800DC500 759B0-A5DD0 (len 30420) */
.text759B0_code 0x800DC500 : AT(0x759B0) {
build/src/code_759b0_len_61b0.o(.text);
build/src/code_7bb60_len_41b0.o(.text);
@ -200,14 +192,10 @@ SECTIONS
build/src/code_8a160_len_700.o(.text);
build/src/code_8a860_len_3f30.o(.text);
build/src/code_8e790_len_2850.o(.text);
build/bin/code_90FE0.o(.data);
}
/* 0x00000000 90FE0-A5DD0 [14DF0] */
.data_90FE0 0x90FE0 : AT(0x90FE0) {
build/bin/90FE0.o(.data);
}
/* 0x8010F6D0 A5DD0-E16B0 (len 3B8E0) */
/* 0x8010F6D0 A5DD0-E79B0 (len 41BE0) */
.textA5DD0_code 0x8010F6D0 : AT(0xA5DD0) {
build/src/code_a5dd0_len_114e0.o(.text);
build/src/code_b72b0_len_15ed0.o(.text);
@ -221,14 +209,10 @@ SECTIONS
build/src/code_ddaf0_len_c50.o(.text);
build/src/code_de740_len_23f0.o(.text);
build/src/code_e0b30_len_b80.o(.text);
build/bin/code_E16B0.o(.data);
}
/* 0x00000000 E16B0-E79B0 [6300] */
.data_E16B0 0xE16B0 : AT(0xE16B0) {
build/bin/E16B0.o(.data);
}
/* 0x802C3000 E79B0-FE650 (len 16CA0) */
/* 0x802C3000 E79B0-FEE30 (len 17480) */
.textE79B0_code 0x802C3000 : AT(0xE79B0) {
build/src/code_e79b0_len_1920.o(.text);
build/src/code_e92d0_len_5da0.o(.text);
@ -238,22 +222,14 @@ SECTIONS
build/src/code_f8f60_len_1560.o(.text);
build/src/code_fa4c0_len_3bf0.o(.text);
build/src/code_fe0b0_len_5a0.o(.text);
build/bin/code_FE650.o(.data);
}
/* 0x00000000 FE650-FEE30 [7E0] */
.data_FE650 0xFE650 : AT(0xFE650) {
build/bin/FE650.o(.data);
}
/* 0x802DBD40 FEE30-102480 (len 3650) */
/* 0x802DBD40 FEE30-102610 (len 37E0) */
.textFEE30_code 0x802DBD40 : AT(0xFEE30) {
build/src/code_fee30_len_2d60.o(.text);
build/src/code_101b90_len_8f0.o(.text);
}
/* 0x00000000 102480-102610 [190] */
.data_102480 0x102480 : AT(0x102480) {
build/bin/102480.o(.data);
build/bin/code_102480.o(.data);
}
/* 0x802E0D90 102610-10A9F0 (len 83E0) */
@ -276,37 +252,30 @@ SECTIONS
build/bin/131340.o(.data);
}
/* 0x80242BA0 135EE0-1422A0 (len C3C0) */
/* 0x80242BA0 135EE0-163400 (len 2D520) */
.text135EE0_code 0x80242BA0 : AT(0x135EE0) {
build/src/code_135EE0.o(.text);
build/bin/code_1422A0.o(.data);
}
/* 0x00000000 1422A0-163400 [21160] */
.data_1422A0 0x1422A0 : AT(0x1422A0) {
build/bin/1422A0.o(.data);
}
/* 0x80242BA0 163400-16A3E0 (len 6FE0) */
/* 0x80242BA0 163400-16C8E0 (len 94E0) */
.text163400_code 0x80242BA0 : AT(0x163400) {
build/src/code_163400.o(.text);
build/src/code_167570.o(.text);
build/src/code_168590.o(.text);
build/src/code_169BE0.o(.text);
build/bin/code_16A3E0.o(.data);
}
/* 0x00000000 16A3E0-16C8E0 [2500] */
.data_16A3E0 0x16A3E0 : AT(0x16A3E0) {
build/bin/16A3E0.o(.data);
}
/* 0x8023E000 16C8E0-1AF2C0 (len 429E0) */
/* 0x8023E000 16C8E0-1CC310 (len 5FA30) */
.text16C8E0_code 0x8023E000 : AT(0x16C8E0) {
build/src/code_16c8e0.o(.text);
build/bin/code_1AF2C0.o(.data);
}
/* 0x00000000 1AF2C0-3169F0 [167730] */
.data_1AF2C0 0x1AF2C0 : AT(0x1AF2C0) {
build/bin/1AF2C0.o(.data);
/* 0x00000000 1CC310-3169F0 [14A6E0] */
.data_1CC310 0x1CC310 : AT(0x1CC310) {
build/bin/1CC310.o(.data);
}
/* 0x80200000 3169F0-316C00 (len 210) */

@ -1 +1 @@
Subproject commit 033f9484f459992814b0d3a13b3dfba26eb32153
Subproject commit 976e90983e073b575a85294afcab39494012221c

View File

@ -14,7 +14,7 @@ segments:
vram: 0xA4000040
files:
- [0x0040, "asm", "boot"]
- [0x0B70, "bin", "bootcode_font"]
- [0x0B70, "bin", "bootcode_font"]
- name: code
type: code
start: 0x1000
@ -185,7 +185,7 @@ segments:
- [0x4a1f0, "c", "os/code_4a1f0_len_170"]
- [0x4a360, "c", "os/code_4a360_len_930"]
- [0x4ac90, "c", "os/code_4ac90_len_3910"]
- [0x4E5A0, "bin"]
- [0x4E5A0, "bin"]
- name: code
type: code
start: 0x759B0
@ -200,7 +200,7 @@ segments:
- [0x8a160, "c", "code_8a160_len_700"]
- [0x8a860, "c", "code_8a860_len_3f30"]
- [0x8e790, "c", "code_8e790_len_2850"]
- [0x90fe0, "bin"]
- [0x90fe0, "bin"]
- name: code
type: code
start: 0xA5DD0
@ -218,7 +218,7 @@ segments:
- [0xddaf0, "c", "code_ddaf0_len_c50"]
- [0xde740, "c", "code_de740_len_23f0"]
- [0xe0b30, "c", "code_e0b30_len_b80"]
- [0xe16b0, "bin"]
- [0xe16b0, "bin"]
- name: code
type: code
start: 0xE79B0
@ -232,7 +232,7 @@ segments:
- [0xf8f60, "c", "code_f8f60_len_1560"]
- [0xfa4c0, "c", "code_fa4c0_len_3bf0"]
- [0xfe0b0, "c", "code_fe0b0_len_5a0"]
- [0xFE650, "bin"]
- [0xFE650, "bin"]
- name: code
type: code
start: 0xFEE30
@ -240,7 +240,7 @@ segments:
files:
- [0xfee30, "c", "code_fee30_len_2d60"]
- [0x101b90, "c", "code_101b90_len_8f0"]
- [0x102480, "bin"]
- [0x102480, "bin"]
- name: code
type: code
start: 0x102610
@ -252,15 +252,15 @@ segments:
- [0x107830, "c", "code_107830_len_e70"]
- [0x1086a0, "c", "code_1086a0_len_fc0"]
- [0x109660, "c", "code_109660_len_1270"]
- [0x10A9F0, "bin"]
- [0x131340, "bin"]
- [0x10A9F0, "bin"] # todo split this further
- [0x131340, "bin"] # 0x8023E000
- name: code
type: code
start: 0x135EE0
vram: 0x80242BA0
files:
- [0x135EE0, "c", "code_135EE0"]
- [0x1422A0, "bin"]
- [0x1422A0, "bin"]
- name: code
type: code
start: 0x163400
@ -270,14 +270,15 @@ segments:
- [0x167570, "c", "code_167570"]
- [0x168590, "c", "code_168590"]
- [0x169BE0, "c", "code_169BE0"]
- [0x16a3e0, "bin"]
- [0x16A3E0, "bin"]
- name: code
type: code
start: 0x16C8E0
vram: 0x8023E000
files:
- [0x16C8E0, "c", "code_16c8e0"]
- [0x1AF2C0, "bin"]
- [0x1AF2C0, "bin"]
- [0x1CC310, "bin"] # icon images and palettes, vram unknown
- name: code
type: code
start: 0x3169F0
@ -285,7 +286,7 @@ segments:
files:
- [0x3169f0, "c", "code_3169f0"]
- [0x316a70, "c", "code_316a70"]
- [0x316c00, "bin"]
- [0x316c00, "bin"] # 0x802AE000
- name: code
type: code
start: 0x316D90
@ -298,14 +299,14 @@ segments:
vram: 0x802B2000
files:
- [0x316f30, "c", "code_316f30"]
- [0x317020, "bin"]
- [0x317020, "bin"] # todo split this further
- name: code
type: code
start: 0x415D90
vram: 0x802A1000
files:
- [0x415D90, "c", "code_415D90"]
- [0x4200C0, "bin"]
- [0x4200C0, "bin"] # todo split this further
- name: code
type: code
start: 0x7E0E80
@ -314,7 +315,7 @@ segments:
- [0x7e0e80, "c", "code_7e0e80"]
- [0x7E2AA0, "c", "code_7E2AA0"]
- [0x7E3700, "c", "code_7E3700"]
- [0x7e4d00, "bin"]
- [0x7e4d00, "bin"] # todo split this further
- name: code
type: code
start: 0xE20EB0