1 | MEMORY { |
---|
2 | DSROM : ORIGIN = 0x00020000, LENGTH = 64k |
---|
3 | SYSROM : ORIGIN = 0x00100000, LENGTH = 4k |
---|
4 | RAM : ORIGIN = 0x40000000, LENGTH = 240k |
---|
5 | NOCACHE : ORIGIN = 0x4003c000, LENGTH = 16k |
---|
6 | DSRAM : ORIGIN = 0x20000000, LENGTH = 64k |
---|
7 | RAM_EXT : ORIGIN = 0x20010000, LENGTH = 444k |
---|
8 | SYSRAM : ORIGIN = 0x2007f000, LENGTH = 4k |
---|
9 | NVRAM : ORIGIN = 0x3ffa0000, LENGTH = 128k |
---|
10 | } |
---|
11 | |
---|
12 | REGION_ALIAS ("REGION_START", STARTROM); |
---|
13 | REGION_ALIAS ("REGION_FAST_TEXT", RAM); |
---|
14 | REGION_ALIAS ("REGION_FAST_TEXT_LOAD", ROM); |
---|
15 | REGION_ALIAS ("REGION_TEXT", ROM); |
---|
16 | REGION_ALIAS ("REGION_TEXT_LOAD", ROM); |
---|
17 | REGION_ALIAS ("REGION_RODATA", ROM); |
---|
18 | REGION_ALIAS ("REGION_RODATA_LOAD", ROM); |
---|
19 | REGION_ALIAS ("REGION_FAST_DATA", RAM); |
---|
20 | REGION_ALIAS ("REGION_FAST_DATA_LOAD", ROM); |
---|
21 | REGION_ALIAS ("REGION_DATA", RAM); |
---|
22 | REGION_ALIAS ("REGION_DATA_LOAD", ROM); |
---|
23 | REGION_ALIAS ("REGION_BSS", RAM); |
---|
24 | REGION_ALIAS ("REGION_RWEXTRA", RAM_EXT); |
---|
25 | REGION_ALIAS ("REGION_WORK", RAM); |
---|
26 | REGION_ALIAS ("REGION_STACK", RAM); |
---|
27 | REGION_ALIAS ("REGION_NOCACHE", NOCACHE); |
---|
28 | REGION_ALIAS ("REGION_NOCACHE_LOAD", ROM); |
---|
29 | REGION_ALIAS ("REGION_NVRAM", NVRAM); |
---|
30 | |
---|
31 | SECTIONS { |
---|
32 | .dsram (NOLOAD) : { |
---|
33 | bsp_section_dsram_begin = .; |
---|
34 | *(SORT(.bsp_dsram*)) |
---|
35 | bsp_section_dsram_end = .; |
---|
36 | } > DSRAM AT > DSROM |
---|
37 | bsp_section_dsram_size = bsp_section_dsram_end - bsp_section_dsram_begin; |
---|
38 | bsp_section_dsram_load_begin = LOADADDR (.dsram); |
---|
39 | bsp_section_dsram_load_end = bsp_section_dsram_load_begin + bsp_section_dsram_size; |
---|
40 | |
---|
41 | .sysram : { |
---|
42 | bsp_section_sysram_begin = .; |
---|
43 | *(SORT(.bsp_sysram*)) |
---|
44 | bsp_section_sysram_end = .; |
---|
45 | } > SYSRAM AT > SYSROM |
---|
46 | bsp_section_sysram_size = bsp_section_sysram_end - bsp_section_sysram_begin; |
---|
47 | bsp_section_sysram_load_begin = LOADADDR (.sysram); |
---|
48 | bsp_section_sysram_load_end = bsp_section_sysram_load_begin + bsp_section_sysram_size; |
---|
49 | } |
---|
50 | |
---|
51 | INCLUDE linkcmds.mpc55xx |
---|