Rev 125 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 125 | Rev 156 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * PowerPC linker script |
2 | * PowerPC linker script |
3 | * |
3 | * |
4 | * kernel text |
4 | * kernel text |
5 | * kernel data |
5 | * kernel data |
6 | * |
6 | * |
7 | */ |
7 | */ |
8 | 8 | ||
9 | OUTPUT_FORMAT(binary) |
9 | OUTPUT_FORMAT(binary) |
10 | ENTRY(kernel_image_start) |
10 | ENTRY(kernel_image_start) |
11 | 11 | ||
12 | SECTIONS { |
12 | SECTIONS { |
13 | .image 0x80000000: AT (0x80000000) { |
13 | .image 0x80000000: AT (0x80000000) { |
14 | ktext_start = .; |
14 | ktext_start = .; |
15 | *(.text); |
15 | *(.text); |
16 | ktext_end = .; |
16 | ktext_end = .; |
17 | 17 | ||
18 | kdata_start = .; |
18 | kdata_start = .; |
19 | kdata_end = .; |
19 | kdata_end = .; |
20 | } = 0x00000000 |
20 | } = 0x00000000 |
21 | 21 | ||
22 | . = ABSOLUTE(hardcoded_ktext_size); |
22 | . = ABSOLUTE(hardcoded_ktext_size); |
23 | .patch_1 : { |
23 | .patch_1 : { |
24 | LONG(ktext_end - ktext_start); |
24 | LONG(ktext_end - ktext_start); |
25 | } |
25 | } |
26 | 26 | ||
27 | . = ABSOLUTE(hardcoded_kdata_size); |
27 | . = ABSOLUTE(hardcoded_kdata_size); |
28 | .patch_2 : { |
28 | .patch_2 : { |
29 | LONG(kdata_end - kdata_start); |
29 | LONG(kdata_end - kdata_start); |
30 | } |
30 | } |
31 | 31 | ||
32 | . = ABSOLUTE(hardcoded_load_address); |
32 | . = ABSOLUTE(hardcoded_load_address); |
33 | .patch_3 : { |
33 | .patch_3 : { |
34 | LONG(0x80000000); |
34 | LONG(0x80000000); |
35 | } |
35 | } |
36 | 36 | ||
37 | } |
37 | } |
38 | 38 |