Rev 210 | Rev 287 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | jermar | 1 | /* |
163 | decky | 2 | * PPC linker script |
3 | * |
||
4 | * It is ELF format, but its only section looks like this: |
||
1 | jermar | 5 | * kernel text |
6 | * kernel data |
||
163 | decky | 7 | * |
1 | jermar | 8 | */ |
9 | |||
163 | decky | 10 | OUTPUT_FORMAT(elf32-powerpc) |
1 | jermar | 11 | ENTRY(kernel_image_start) |
12 | |||
13 | SECTIONS { |
||
125 | jermar | 14 | .image 0x80000000: AT (0x80000000) { |
15 | ktext_start = .; |
||
160 | jermar | 16 | *(K_TEXT_START) |
125 | jermar | 17 | *(.text); |
163 | decky | 18 | ktext_end = .; |
19 | |||
20 | kdata_start = .; |
||
21 | *(K_DATA_START) |
||
162 | decky | 22 | *(.rodata); |
23 | *(.rodata.*); |
||
24 | *(.data); /* initialized data */ |
||
25 | *(.sdata); |
||
210 | decky | 26 | *(.sdata2); |
162 | decky | 27 | *(.sbss); |
218 | decky | 28 | hardcoded_ktext_size = .; |
29 | LONG(ktext_end - ktext_start); |
||
30 | hardcoded_kdata_size = .; |
||
31 | LONG(kdata_end - kdata_start); |
||
32 | hardcoded_load_address = .; |
||
33 | LONG(0x80000000); |
||
162 | decky | 34 | *(.bss); /* uninitialized static variables */ |
35 | *(COMMON); /* global variables */ |
||
125 | jermar | 36 | kdata_end = .; |
37 | } |
||
1 | jermar | 38 | } |