Rev 11 | Rev 65 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | jermar | 1 | /* |
11 | jermar | 2 | * ia32 linker script |
1 | jermar | 3 | * |
4 | * kernel text |
||
5 | * kernel data |
||
6 | * |
||
7 | */ |
||
8 | |||
9 | OUTPUT_FORMAT(binary) |
||
10 | ENTRY(kernel_image_start) |
||
11 | |||
12 | SECTIONS { |
||
13 | .image 0x8000: AT (0x8000) { |
||
14 | ktext_start = .; |
||
15 | *(K_TEXT_START); |
||
16 | jermar | 16 | delta_start = .; |
17 | *(K_DATA_START); |
||
18 | delta_end = .; |
||
1 | jermar | 19 | *(.text); |
20 | ktext_end = .; |
||
21 | |||
22 | kdata_start = .; |
||
23 | *(.data); /* initialized data */ |
||
24 | *(.rodata*); /* string literals */ |
||
25 | *(COMMON); /* global variables */ |
||
26 | *(.bss); /* uninitialized static variables */ |
||
27 | *(K_DATA_END); |
||
28 | kdata_end = .; |
||
29 | } |
||
30 | |||
31 | . = ABSOLUTE(hardcoded_ktext_size); |
||
32 | .patch_1 : { |
||
16 | jermar | 33 | LONG(ktext_end - ktext_start - (delta_end - delta_start)); |
1 | jermar | 34 | } |
35 | |||
36 | . = ABSOLUTE(hardcoded_kdata_size); |
||
37 | .patch_2 : { |
||
16 | jermar | 38 | LONG(kdata_end - kdata_start + (delta_end - delta_start)); |
1 | jermar | 39 | } |
40 | |||
41 | . = ABSOLUTE(hardcoded_load_address); |
||
42 | .patch_3 : { |
||
43 | LONG(0x8000); |
||
44 | } |
||
45 | |||
46 | } |