source:
mainline/kernel/arch/ia32xen/_link.ld.in@
53634f9
Last change on this file since 53634f9 was b3f8fb7, checked in by , 19 years ago | |
---|---|
|
|
File size: 888 bytes |
Rev | Line | |
---|---|---|
[19dce27] | 1 | /** ia32xen linker script |
[f6ed1ae] | 2 | */ |
3 | ||
[b3f8fb7] | 4 | #include <arch/hypercall.h> |
[f6ed1ae] | 5 | #include <arch/mm/page.h> |
6 | ||
[983cd374] | 7 | ENTRY(kernel_image_start) |
8 | ||
[9ab9c2ec] | 9 | PHDRS { |
10 | image PT_LOAD FLAGS(7); /* RWE */ | |
11 | note PT_NOTE FLAGS(4); /* R__ */ | |
12 | } | |
13 | ||
[f6ed1ae] | 14 | SECTIONS { |
[9ab9c2ec] | 15 | .image PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { |
[f6ed1ae] | 16 | ktext_start = .; |
[aecf79f] | 17 | *(K_TEXT_START); |
[f6ed1ae] | 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 = .; | |
[5d3d7c2b] | 26 | LONG(PA2KA(0)); |
[f6ed1ae] | 27 | hardcoded_ktext_size = .; |
[5d3d7c2b] | 28 | LONG(ktext_end - ktext_start); |
[f6ed1ae] | 29 | hardcoded_kdata_size = .; |
[5d3d7c2b] | 30 | LONG(kdata_end - kdata_start); |
[f6ed1ae] | 31 | symbol_table = .; |
32 | *(symtab.*); /* Symbol table, must be LAST symbol! */ | |
33 | *(.bss); /* uninitialized static variables */ | |
34 | kdata_end = .; | |
[9ab9c2ec] | 35 | } :image |
36 | ||
37 | .notes : { | |
38 | *(.note.Xen); | |
39 | } :note | |
[f6ed1ae] | 40 | |
41 | /DISCARD/ : { | |
42 | *(.note.GNU-stack); | |
43 | *(.comment); | |
44 | } | |
45 | } |
Note:
See TracBrowser
for help on using the repository browser.