リビジョン | a5bded78f458324c76f82d36dcc0d2c262371830 (tree) |
---|---|
日時 | 2011-04-06 00:13:30 |
作者 | ryuz <ryuz@user...> |
コミッター | ryuz |
modify linker scripts
@@ -4,8 +4,8 @@ ENTRY(_reset_handler) | ||
4 | 4 | MEMORY |
5 | 5 | { |
6 | 6 | vector : o = 0x20000000, l = 0x00000040 |
7 | - rom : o = 0x20000040, l = 0x000fffc0 | |
8 | - ram : o = 0x20100000, l = 0x00100000 | |
7 | + ro : o = 0x20000040, l = 0x000fffc0 | |
8 | + rw : o = 0x20100000, l = 0x00100000 | |
9 | 9 | } |
10 | 10 | |
11 | 11 | SECTIONS |
@@ -25,7 +25,7 @@ SECTIONS | ||
25 | 25 | *(.rodata*) |
26 | 26 | *(.glue*) |
27 | 27 | ___text_end = . ; |
28 | - } > rom | |
28 | + } > ro | |
29 | 29 | .tors : |
30 | 30 | { |
31 | 31 | . = ALIGN(4); |
@@ -35,20 +35,20 @@ SECTIONS | ||
35 | 35 | ___dtors = . ; |
36 | 36 | *(.dtors) |
37 | 37 | ___dtors_end = . ; |
38 | - } > rom | |
38 | + } > ro | |
39 | 39 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
40 | 40 | { |
41 | 41 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
42 | 42 | ___data = . ; |
43 | 43 | *(.data) |
44 | 44 | ___data_end = . ; |
45 | - } > ram | |
45 | + } > rw | |
46 | 46 | .bss : |
47 | 47 | { |
48 | 48 | ___bss = . ; |
49 | 49 | *(.bss) |
50 | 50 | *(COMMON) |
51 | 51 | ___bss_end = . ; |
52 | - } >ram | |
52 | + } > rw | |
53 | 53 | } |
54 | 54 |
@@ -3,8 +3,8 @@ ENTRY(_reset_handler) | ||
3 | 3 | |
4 | 4 | MEMORY |
5 | 5 | { |
6 | - rom : o = 0x00000000, l = 0x00020000 | |
7 | - ram : o = 0x00020000, l = 0x000e0000 | |
6 | + ro : o = 0x00000000, l = 0x00020000 | |
7 | + rw : o = 0x00020000, l = 0x000e0000 | |
8 | 8 | } |
9 | 9 | |
10 | 10 | SECTIONS |
@@ -18,7 +18,7 @@ SECTIONS | ||
18 | 18 | *(.rodata*) |
19 | 19 | *(.glue*) |
20 | 20 | ___text_end = . ; |
21 | - } > rom | |
21 | + } > ro | |
22 | 22 | .tors : |
23 | 23 | { |
24 | 24 | . = ALIGN(4); |
@@ -28,7 +28,7 @@ SECTIONS | ||
28 | 28 | ___dtors = . ; |
29 | 29 | *(.dtors) |
30 | 30 | ___dtors_end = . ; |
31 | - } > rom | |
31 | + } > ro | |
32 | 32 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
33 | 33 | { |
34 | 34 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
@@ -38,7 +38,7 @@ SECTIONS | ||
38 | 38 | *(.sdata) |
39 | 39 | *(.eh_frame) |
40 | 40 | ___data_end = . ; |
41 | - } > ram | |
41 | + } > rw | |
42 | 42 | .bss : |
43 | 43 | { |
44 | 44 | ___bss = . ; |
@@ -47,6 +47,6 @@ SECTIONS | ||
47 | 47 | *(COMMON) |
48 | 48 | *(.scommon) |
49 | 49 | ___bss_end = . ; |
50 | - } > ram | |
50 | + } > rw | |
51 | 51 | } |
52 | 52 |
@@ -3,8 +3,8 @@ ENTRY(_reset_handler) | ||
3 | 3 | |
4 | 4 | MEMORY |
5 | 5 | { |
6 | - rom : o = 0x00000000, l = 0x00010000 | |
7 | - ram : o = 0x01000000, l = 0x00100000 | |
6 | + ro : o = 0x00000000, l = 0x00010000 | |
7 | + ra : o = 0x01000000, l = 0x00100000 | |
8 | 8 | } |
9 | 9 | |
10 | 10 | SECTIONS |
@@ -18,7 +18,7 @@ SECTIONS | ||
18 | 18 | *(.rodata*) |
19 | 19 | *(.glue*) |
20 | 20 | ___text_end = . ; |
21 | - } > rom | |
21 | + } > ro | |
22 | 22 | .tors : |
23 | 23 | { |
24 | 24 | . = ALIGN(4); |
@@ -28,7 +28,7 @@ SECTIONS | ||
28 | 28 | ___dtors = . ; |
29 | 29 | *(.dtors) |
30 | 30 | ___dtors_end = . ; |
31 | - } > rom | |
31 | + } > ro | |
32 | 32 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
33 | 33 | { |
34 | 34 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
@@ -38,7 +38,7 @@ SECTIONS | ||
38 | 38 | *(.sdata) |
39 | 39 | *(.eh_frame) |
40 | 40 | ___data_end = . ; |
41 | - } > ram | |
41 | + } > rw | |
42 | 42 | .bss : |
43 | 43 | { |
44 | 44 | ___bss = . ; |
@@ -47,6 +47,6 @@ SECTIONS | ||
47 | 47 | *(COMMON) |
48 | 48 | *(.scommon) |
49 | 49 | ___bss_end = . ; |
50 | - } >ram | |
50 | + } > rw | |
51 | 51 | } |
52 | 52 |
@@ -3,8 +3,8 @@ ENTRY(_reset_handler) | ||
3 | 3 | |
4 | 4 | MEMORY |
5 | 5 | { |
6 | - ram : o = 0x00000004, l = 0x00001ffc | |
7 | - rom : o = 0x40000000, l = 0x00040000 | |
6 | + rw : o = 0x00000004, l = 0x00001ffc | |
7 | + ro : o = 0x40000000, l = 0x00040000 | |
8 | 8 | } |
9 | 9 | |
10 | 10 | SECTIONS |
@@ -17,7 +17,7 @@ SECTIONS | ||
17 | 17 | *(.rodata*) |
18 | 18 | *(.glue*) |
19 | 19 | ___text_end = . ; |
20 | - } > rom | |
20 | + } > ro | |
21 | 21 | .tors : |
22 | 22 | { |
23 | 23 | . = ALIGN(4); |
@@ -27,20 +27,20 @@ SECTIONS | ||
27 | 27 | ___dtors = . ; |
28 | 28 | *(.dtors) |
29 | 29 | ___dtors_end = . ; |
30 | - } > rom | |
30 | + } > ro | |
31 | 31 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
32 | 32 | { |
33 | 33 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
34 | 34 | ___data = . ; |
35 | 35 | *(.data) |
36 | 36 | ___data_end = . ; |
37 | - } > ram | |
37 | + } > rw | |
38 | 38 | .bss : |
39 | 39 | { |
40 | 40 | ___bss = . ; |
41 | 41 | *(.bss) |
42 | 42 | *(COMMON) |
43 | 43 | ___bss_end = . ; |
44 | - } >ram | |
44 | + } > rw | |
45 | 45 | } |
46 | 46 |
@@ -4,8 +4,8 @@ ENTRY(_reset_handler) | ||
4 | 4 | MEMORY |
5 | 5 | { |
6 | 6 | vector : o = 0x400000, l = 0x00400 |
7 | - rom : o = 0x400400, l = 0x0fc00 | |
8 | - ram : o = 0x410000, l = 0x10000 | |
7 | + ro : o = 0x400400, l = 0x0fc00 | |
8 | + rw : o = 0x410000, l = 0x10000 | |
9 | 9 | } |
10 | 10 | |
11 | 11 | SECTIONS |
@@ -24,7 +24,7 @@ SECTIONS | ||
24 | 24 | *(.strings) |
25 | 25 | *(.rodata*) |
26 | 26 | ___text_end = . ; |
27 | - } > rom | |
27 | + } > ro | |
28 | 28 | .tors : |
29 | 29 | { |
30 | 30 | . = ALIGN(4); |
@@ -34,20 +34,20 @@ SECTIONS | ||
34 | 34 | ___dtors = . ; |
35 | 35 | *(.dtors) |
36 | 36 | ___dtors_end = . ; |
37 | - } > rom | |
37 | + } > ro | |
38 | 38 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
39 | 39 | { |
40 | 40 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
41 | 41 | ___data = . ; |
42 | 42 | *(.data) |
43 | 43 | ___data_end = . ; |
44 | - } > ram | |
44 | + } > rw | |
45 | 45 | .bss : |
46 | 46 | { |
47 | 47 | ___bss = . ; |
48 | 48 | *(.bss) |
49 | 49 | *(COMMON) |
50 | 50 | ___bss_end = . ; |
51 | - } >ram | |
51 | + } > rw | |
52 | 52 | } |
53 | 53 |
@@ -4,8 +4,8 @@ ENTRY(_reset_handler) | ||
4 | 4 | MEMORY |
5 | 5 | { |
6 | 6 | vector : o = 0x0000000, l = 0x00400 |
7 | - rom : o = 0x0000400, l = 0x3fc00 | |
8 | - ram : o = 0x0040000, l = 0x80000 | |
7 | + ro : o = 0x0000400, l = 0x3fc00 | |
8 | + rw : o = 0x0040000, l = 0x80000 | |
9 | 9 | } |
10 | 10 | |
11 | 11 | SECTIONS |
@@ -24,7 +24,7 @@ SECTIONS | ||
24 | 24 | *(.strings) |
25 | 25 | *(.rodata*) |
26 | 26 | ___text_end = . ; |
27 | - } > rom | |
27 | + } > ro | |
28 | 28 | .tors : |
29 | 29 | { |
30 | 30 | . = ALIGN(4); |
@@ -34,21 +34,21 @@ SECTIONS | ||
34 | 34 | ___dtors = . ; |
35 | 35 | *(.dtors) |
36 | 36 | ___dtors_end = . ; |
37 | - } > rom | |
37 | + } > ro | |
38 | 38 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
39 | 39 | { |
40 | 40 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
41 | 41 | ___data = . ; |
42 | 42 | *(.data) |
43 | 43 | ___data_end = . ; |
44 | - } > ram | |
44 | + } > rw | |
45 | 45 | .bss : |
46 | 46 | { |
47 | 47 | ___bss = . ; |
48 | 48 | *(.bss) |
49 | 49 | *(COMMON) |
50 | 50 | ___bss_end = . ; |
51 | - } >ram | |
51 | + } >rw | |
52 | 52 | } |
53 | 53 | |
54 | 54 |
@@ -17,7 +17,7 @@ | ||
17 | 17 | |
18 | 18 | #define _KERNEL_IRCATR_IRC TRUE /**< %jp{IRCの有無} */ |
19 | 19 | #define _KERNEL_IRCATR_REG_BASE TRUE /**< %jp{IRCレジスタベースアドレスの有無} */ |
20 | -#define _KERNEL_IRCATR_REG_BASE_DEF 0x00000000 /**< %jp{デフォルトのIRCレジスタベースアドレス} */ | |
20 | +#define _KERNEL_IRCATR_REG_BASE_DEF 0x41200000 /**< %jp{デフォルトのIRCレジスタベースアドレス} */ | |
21 | 21 | |
22 | 22 | #define _KERNEL_IRCATR_TMIN_INTNO 0 /**< %jp{割込み番号の最小値} */ |
23 | 23 | #define _KERNEL_IRCATR_TMAX_INTNO 31 /**< %jp{割込み番号の最大値} */ |
@@ -4,8 +4,8 @@ ENTRY(_reset_handler) | ||
4 | 4 | MEMORY |
5 | 5 | { |
6 | 6 | vector : o = 0x00000000, l = 0x00000040 |
7 | - rom : o = 0x00000040, l = 0x0000ffc0 | |
8 | - ram : o = 0x00010000, l = 0x00002000 | |
7 | + ro : o = 0x00000040, l = 0x0000ffc0 | |
8 | + rw : o = 0x00010000, l = 0x00002000 | |
9 | 9 | } |
10 | 10 | |
11 | 11 | SECTIONS |
@@ -25,7 +25,7 @@ SECTIONS | ||
25 | 25 | *(.rodata*) |
26 | 26 | *(.glue*) |
27 | 27 | ___text_end = . ; |
28 | - } > rom | |
28 | + } > ro | |
29 | 29 | .tors : |
30 | 30 | { |
31 | 31 | . = ALIGN(4); |
@@ -35,20 +35,20 @@ SECTIONS | ||
35 | 35 | ___dtors = . ; |
36 | 36 | *(.dtors) |
37 | 37 | ___dtors_end = . ; |
38 | - } > rom | |
38 | + } > ro | |
39 | 39 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
40 | 40 | { |
41 | 41 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
42 | 42 | ___data = . ; |
43 | 43 | *(.data) |
44 | 44 | ___data_end = . ; |
45 | - } > ram | |
45 | + } > rw | |
46 | 46 | .bss : |
47 | 47 | { |
48 | 48 | ___bss = . ; |
49 | 49 | *(.bss) |
50 | 50 | *(COMMON) |
51 | 51 | ___bss_end = . ; |
52 | - } >ram | |
52 | + } > rw | |
53 | 53 | } |
54 | 54 |
@@ -4,8 +4,8 @@ ENTRY(_reset_handler) | ||
4 | 4 | MEMORY |
5 | 5 | { |
6 | 6 | vector : o = 0x00000000, l = 0x00000040 |
7 | - rom : o = 0x00000040, l = 0x0000ffc0 | |
8 | - ram : o = 0x40000000, l = 0x00004000 | |
7 | + ro : o = 0x00000040, l = 0x0000ffc0 | |
8 | + rw : o = 0x40000000, l = 0x00004000 | |
9 | 9 | } |
10 | 10 | |
11 | 11 | SECTIONS |
@@ -25,7 +25,7 @@ SECTIONS | ||
25 | 25 | *(.rodata*) |
26 | 26 | *(.glue*) |
27 | 27 | ___text_end = . ; |
28 | - } > rom | |
28 | + } > ro | |
29 | 29 | .tors : |
30 | 30 | { |
31 | 31 | . = ALIGN(4); |
@@ -35,20 +35,20 @@ SECTIONS | ||
35 | 35 | ___dtors = . ; |
36 | 36 | *(.dtors) |
37 | 37 | ___dtors_end = . ; |
38 | - } > rom | |
38 | + } > ro | |
39 | 39 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
40 | 40 | { |
41 | 41 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
42 | 42 | ___data = . ; |
43 | 43 | *(.data) |
44 | 44 | ___data_end = . ; |
45 | - } > ram | |
45 | + } > rw | |
46 | 46 | .bss : |
47 | 47 | { |
48 | 48 | ___bss = . ; |
49 | 49 | *(.bss) |
50 | 50 | *(COMMON) |
51 | 51 | ___bss_end = . ; |
52 | - } >ram | |
52 | + } > rw | |
53 | 53 | } |
54 | 54 |
@@ -4,8 +4,8 @@ ENTRY(_reset_handler) | ||
4 | 4 | MEMORY |
5 | 5 | { |
6 | 6 | vector : o = 0x80000000, l = 0x00000040 |
7 | - rom : o = 0x80000040, l = 0x0000ffc0 | |
8 | - ram : o = 0x80010000, l = 0x00002000 | |
7 | + ro : o = 0x80000040, l = 0x0000ffc0 | |
8 | + rw : o = 0x80010000, l = 0x00002000 | |
9 | 9 | } |
10 | 10 | |
11 | 11 | SECTIONS |
@@ -25,7 +25,7 @@ SECTIONS | ||
25 | 25 | *(.rodata*) |
26 | 26 | *(.glue*) |
27 | 27 | ___text_end = . ; |
28 | - } > rom | |
28 | + } > ro | |
29 | 29 | .tors : |
30 | 30 | { |
31 | 31 | . = ALIGN(4); |
@@ -35,20 +35,20 @@ SECTIONS | ||
35 | 35 | ___dtors = . ; |
36 | 36 | *(.dtors) |
37 | 37 | ___dtors_end = . ; |
38 | - } > rom | |
38 | + } > ro | |
39 | 39 | data : AT (ADDR(.tors) + SIZEOF(.tors)) |
40 | 40 | { |
41 | 41 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
42 | 42 | ___data = . ; |
43 | 43 | *(.data) |
44 | 44 | ___data_end = . ; |
45 | - } > ram | |
45 | + } > rw | |
46 | 46 | .bss : |
47 | 47 | { |
48 | 48 | ___bss = . ; |
49 | 49 | *(.bss) |
50 | 50 | *(COMMON) |
51 | 51 | ___bss_end = . ; |
52 | - } >ram | |
52 | + } > rw | |
53 | 53 | } |
54 | 54 |
@@ -3,8 +3,8 @@ ENTRY(_reset_handler) | ||
3 | 3 | |
4 | 4 | MEMORY |
5 | 5 | { |
6 | - rom : o = 0x00000000, l = 0x00010000 | |
7 | - ram : o = 0x00010000, l = 0x00001000 | |
6 | + ro : o = 0x00000000, l = 0x00010000 | |
7 | + rw : o = 0x00010000, l = 0x00001000 | |
8 | 8 | } |
9 | 9 | |
10 | 10 | SECTIONS |
@@ -18,7 +18,7 @@ SECTIONS | ||
18 | 18 | *(.rodata*) |
19 | 19 | *(.glue*) |
20 | 20 | ___text_end = . ; |
21 | - } > rom | |
21 | + } > ro | |
22 | 22 | .tors : |
23 | 23 | { |
24 | 24 | . = ALIGN(4); |
@@ -28,7 +28,7 @@ SECTIONS | ||
28 | 28 | ___dtors = . ; |
29 | 29 | *(.dtors) |
30 | 30 | ___dtors_end = . ; |
31 | - } > rom | |
31 | + } > ro | |
32 | 32 | .data : AT (ADDR(.tors) + SIZEOF(.tors)) |
33 | 33 | { |
34 | 34 | ___data_rom = ADDR(.tors) + SIZEOF(.tors); |
@@ -37,7 +37,7 @@ SECTIONS | ||
37 | 37 | _gp = ALIGN(16) + 0x7ff0; |
38 | 38 | *(.sdata) |
39 | 39 | ___data_end = . ; |
40 | - } > ram | |
40 | + } > rw | |
41 | 41 | .bss : |
42 | 42 | { |
43 | 43 | ___bss = . ; |
@@ -46,6 +46,6 @@ SECTIONS | ||
46 | 46 | *(COMMON) |
47 | 47 | *(.scommon) |
48 | 48 | ___bss_end = . ; |
49 | - } > ram | |
49 | + } > rw | |
50 | 50 | } |
51 | 51 |