Rev 65 | Rev 106 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
65 | decky | 1 | /** IA-32 linker script |
1 | jermar | 2 | * |
105 | jermar | 3 | * umapped section: |
4 | * kernel text |
||
5 | * kernel data |
||
6 | * mapped section: |
||
7 | * kernel text |
||
8 | * kernel data |
||
1 | jermar | 9 | */ |
10 | |||
11 | OUTPUT_FORMAT(binary) |
||
12 | ENTRY(kernel_image_start) |
||
13 | |||
14 | SECTIONS { |
||
105 | jermar | 15 | .unmapped 0x8000: AT (0x8000) { |
16 | unmapped_ktext_start = .; |
||
1 | jermar | 17 | *(K_TEXT_START); |
105 | jermar | 18 | unmapped_ktext_end = .; |
19 | unmapped_kdata_start = .; |
||
16 | jermar | 20 | *(K_DATA_START); |
105 | jermar | 21 | unmapped_kdata_end = .; |
22 | } |
||
23 | |||
24 | .mapped (0x80000000+SIZEOF(.unmapped)+0x8000) : AT (0x8000+SIZEOF(.unmapped)) { |
||
25 | ktext_start = .; |
||
1 | jermar | 26 | *(.text); |
27 | ktext_end = .; |
||
28 | |||
29 | kdata_start = .; |
||
30 | *(.data); /* initialized data */ |
||
31 | *(.rodata*); /* string literals */ |
||
32 | *(COMMON); /* global variables */ |
||
33 | *(.bss); /* uninitialized static variables */ |
||
34 | *(K_DATA_END); |
||
35 | kdata_end = .; |
||
36 | } |
||
37 | |||
105 | jermar | 38 | _hardcoded_ktext_size = ktext_end - ktext_start + (unmapped_ktext_end - unmapped_ktext_start); |
39 | _hardcoded_kdata_size = kdata_end - kdata_start + (unmapped_kdata_end - unmapped_kdata_start); |
||
40 | _hardcoded_load_address = 0x80008000; |
||
1 | jermar | 41 | |
42 | } |