Rev 156 | Rev 162 | 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 = .; |
||
160 | jermar | 15 | *(K_TEXT_START) |
125 | jermar | 16 | *(.text); |
17 | ktext_end = .; |
||
1 | jermar | 18 | |
125 | jermar | 19 | kdata_start = .; |
20 | kdata_end = .; |
||
21 | } = 0x00000000 |
||
1 | jermar | 22 | |
125 | jermar | 23 | . = ABSOLUTE(hardcoded_ktext_size); |
24 | .patch_1 : { |
||
25 | LONG(ktext_end - ktext_start); |
||
26 | } |
||
1 | jermar | 27 | |
125 | jermar | 28 | . = ABSOLUTE(hardcoded_kdata_size); |
29 | .patch_2 : { |
||
30 | LONG(kdata_end - kdata_start); |
||
31 | } |
||
1 | jermar | 32 | |
125 | jermar | 33 | . = ABSOLUTE(hardcoded_load_address); |
34 | .patch_3 : { |
||
35 | LONG(0x80000000); |
||
36 | } |
||
1 | jermar | 37 | |
38 | } |