-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathys.us.ld
41 lines (35 loc) · 1.02 KB
/
ys.us.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Yoshi's Story linker script
* generated by n64split v0.4a - N64 ROM splitter */
OUTPUT_FORMAT ("elf32-bigmips", "elf32-bigmips", "elf32-littlemips")
OUTPUT_ARCH (mips)
SECTIONS
{
/* header and boot */
.header 0x0 : AT(0x0) {
* (.header);
* (.boot);
}
/* load MIO0 and level data at 0x800000 */
.rodata 0x800000 : {
FILL (0x01) /* fill unused with 0x01 */
* (.mio0);
* (.rodata);
* (.data);
* (.MIPS.abiflags);
. = ALIGN(0x10);
}
/* use segmented addressing for behaviors */
.behavior 0x13000000 : AT( LOADADDR(.rodata) + SIZEOF(.rodata) ) {
FILL (0x01) /* fill unused with 0x01 */
* (.behavior);
behavior_length = . - 0x13000000;
/* default 4MB data (12MB ROM) */
. = 0x400000 - SIZEOF(.rodata);
}
__load_behavior_data = LOADADDR(.behavior);
__load_behavior_data_end = LOADADDR(.behavior) + behavior_length;
/* 0x80000400 001000-092170 [91170] */
.text80000400 0x80000400 : AT(0x001000) {
* (.text80000400);
}
}