Rev 156 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 156 | Rev 160 | ||
---|---|---|---|
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 | *(K_TEXT_START) |
|
15 | *(.text); |
16 | *(.text); |
16 | ktext_end = .; |
17 | ktext_end = .; |
17 | 18 | ||
18 | kdata_start = .; |
19 | kdata_start = .; |
19 | kdata_end = .; |
20 | kdata_end = .; |
20 | } = 0x00000000 |
21 | } = 0x00000000 |
21 | 22 | ||
22 | . = ABSOLUTE(hardcoded_ktext_size); |
23 | . = ABSOLUTE(hardcoded_ktext_size); |
23 | .patch_1 : { |
24 | .patch_1 : { |
24 | LONG(ktext_end - ktext_start); |
25 | LONG(ktext_end - ktext_start); |
25 | } |
26 | } |
26 | 27 | ||
27 | . = ABSOLUTE(hardcoded_kdata_size); |
28 | . = ABSOLUTE(hardcoded_kdata_size); |
28 | .patch_2 : { |
29 | .patch_2 : { |
29 | LONG(kdata_end - kdata_start); |
30 | LONG(kdata_end - kdata_start); |
30 | } |
31 | } |
31 | 32 | ||
32 | . = ABSOLUTE(hardcoded_load_address); |
33 | . = ABSOLUTE(hardcoded_load_address); |
33 | .patch_3 : { |
34 | .patch_3 : { |
34 | LONG(0x80000000); |
35 | LONG(0x80000000); |
35 | } |
36 | } |
36 | 37 | ||
37 | } |
38 | } |
38 | 39 |