Rev 162 | Rev 199 | 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); |
||
26 | *(.sbss); |
||
27 | *(.bss); /* uninitialized static variables */ |
||
28 | *(COMMON); /* global variables */ |
||
125 | jermar | 29 | kdata_end = .; |
30 | } |
||
163 | decky | 31 | |
32 | _hardcoded_ktext_size = ktext_end - ktext_start; |
||
33 | _hardcoded_kdata_size = kdata_end - kdata_start; |
||
34 | _hardcoded_load_address = 0x80000000; |
||
1 | jermar | 35 | |
36 | } |