Rev 1422 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
455 | decky | 1 | /** IA-64 linker script |
37 | jermar | 2 | * |
3 | * It is ELF format, but its only section looks like this: |
||
4 | * kernel text |
||
5 | * kernel data |
||
6 | * |
||
7 | */ |
||
8 | |||
455 | decky | 9 | #define __ASM__ |
10 | |||
35 | jermar | 11 | ENTRY(kernel_image_start) |
12 | |||
13 | SECTIONS { |
||
869 | vana | 14 | .image 0xe000000000100000: AT (0x0000000000100000) { |
106 | jermar | 15 | ktext_start = .; |
16 | *(K_TEXT_START); |
||
151 | decky | 17 | *(.text) |
106 | jermar | 18 | ktext_end = .; |
151 | decky | 19 | |
106 | jermar | 20 | kdata_start = .; |
21 | *(K_DATA_START) |
||
151 | decky | 22 | *(.rodata .rodata.*) |
106 | jermar | 23 | *(.opd) |
1422 | jermar | 24 | *(.data .data.*) |
151 | decky | 25 | *(.got .got.*) |
26 | *(.sdata) |
||
27 | *(.sbss) |
||
106 | jermar | 28 | *(.scommon) |
151 | decky | 29 | *(.bss) |
106 | jermar | 30 | *(COMMON); |
272 | vana | 31 | |
32 | symbol_table = .; |
||
33 | *(symtab.*); /* Symbol table, must be LAST symbol!*/ |
||
34 | |||
106 | jermar | 35 | kdata_end = .; |
36 | } |
||
37 | jermar | 37 | |
1422 | jermar | 38 | /DISCARD/ : { |
39 | *(*); |
||
40 | } |
||
41 | |||
106 | jermar | 42 | _hardcoded_ktext_size = ktext_end - ktext_start; |
43 | _hardcoded_kdata_size = kdata_end - kdata_start; |
||
869 | vana | 44 | _hardcoded_load_address = 0xe000000000100000; |
125 | jermar | 45 | |
35 | jermar | 46 | } |