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