Rev 2089 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1953 | jermar | 1 | /** ia32xen linker script |
| 1804 | decky | 2 | */ |
| 3 | |||
| 2089 | decky | 4 | #include <arch/hypercall.h> |
| 1804 | decky | 5 | #include <arch/mm/page.h> |
| 6 | |||
| 1809 | decky | 7 | ENTRY(kernel_image_start) |
| 8 | |||
| 2014 | decky | 9 | PHDRS { |
| 10 | image PT_LOAD FLAGS(7); /* RWE */ |
||
| 11 | note PT_NOTE FLAGS(4); /* R__ */ |
||
| 12 | } |
||
| 13 | |||
| 1804 | decky | 14 | SECTIONS { |
| 2014 | decky | 15 | .image PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { |
| 1804 | decky | 16 | ktext_start = .; |
| 1816 | decky | 17 | *(K_TEXT_START); |
| 1804 | decky | 18 | *(.text); |
| 19 | ktext_end = .; |
||
| 20 | |||
| 21 | kdata_start = .; |
||
| 22 | *(.data); /* initialized data */ |
||
| 23 | *(.rodata*); /* string literals */ |
||
| 24 | *(COMMON); /* global variables */ |
||
| 25 | hardcoded_load_address = .; |
||
| 1806 | decky | 26 | LONG(PA2KA(0)); |
| 1804 | decky | 27 | hardcoded_ktext_size = .; |
| 1806 | decky | 28 | LONG(ktext_end - ktext_start); |
| 1804 | decky | 29 | hardcoded_kdata_size = .; |
| 1806 | decky | 30 | LONG(kdata_end - kdata_start); |
| 1804 | decky | 31 | symbol_table = .; |
| 32 | *(symtab.*); /* Symbol table, must be LAST symbol! */ |
||
| 33 | *(.bss); /* uninitialized static variables */ |
||
| 34 | kdata_end = .; |
||
| 2014 | decky | 35 | } :image |
| 36 | |||
| 37 | .notes : { |
||
| 38 | *(.note.Xen); |
||
| 39 | } :note |
||
| 1804 | decky | 40 | |
| 41 | /DISCARD/ : { |
||
| 42 | *(.note.GNU-stack); |
||
| 43 | *(.comment); |
||
| 44 | } |
||
| 45 | } |