forked from dism-exe/bn6f
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathld_script.ld
More file actions
51 lines (42 loc) · 811 Bytes
/
ld_script.ld
File metadata and controls
51 lines (42 loc) · 811 Bytes
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
42
43
44
45
46
47
48
49
50
51
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
ewram_region (w!x) : ORIGIN = 0x02000000, LENGTH = 0x40000
iwram_region (w!x) : ORIGIN = 0x03000000, LENGTH = 0x8000
rom_region (rx) : ORIGIN = 0x08000000, LENGTH = 0x800000
}
SECTIONS
{
INCLUDE "constants.ld"
ewram (NOLOAD) :
ALIGN(4)
{
ewram.o(ewram);
} >ewram_region
iwram (NOLOAD) :
ALIGN(4)
{
iwram.o(iwram_data);
} >iwram_region
/* start of ROM */
.text :
{
rom.o(.text);
} >rom_region
iwram_text :
{
iwram.o(.text);
} >iwram_region AT>rom_region
.rodata :
ALIGN(4)
{
data.o(.rodata);
} >rom_region
.fill :
{
FILL(0xff);
. = ORIGIN(rom_region) + LENGTH(rom_region) - 1;
BYTE(0xff);
} >rom_region
}