lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since a000fd71 was aecf79f, checked in by Martin Decky <martin@…>, 19 years ago |
|
xen memory initialization
|
-
Property mode
set to
100644
|
|
File size:
800 bytes
|
| Line | |
|---|
| 1 | /** Xen32 linker script
|
|---|
| 2 | */
|
|---|
| 3 |
|
|---|
| 4 | #define __ASM__
|
|---|
| 5 | #include <arch/boot/boot.h>
|
|---|
| 6 | #include <arch/mm/page.h>
|
|---|
| 7 |
|
|---|
| 8 | ENTRY(kernel_image_start)
|
|---|
| 9 |
|
|---|
| 10 | SECTIONS {
|
|---|
| 11 | __xen_guest : {
|
|---|
| 12 | *(__xen_guest);
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | .image PA2KA(BOOT_OFFSET): {
|
|---|
| 16 | ktext_start = .;
|
|---|
| 17 | *(K_TEXT_START);
|
|---|
| 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 = .;
|
|---|
| 26 | LONG(PA2KA(0));
|
|---|
| 27 | hardcoded_ktext_size = .;
|
|---|
| 28 | LONG(ktext_end - ktext_start);
|
|---|
| 29 | hardcoded_kdata_size = .;
|
|---|
| 30 | LONG(kdata_end - kdata_start);
|
|---|
| 31 | symbol_table = .;
|
|---|
| 32 | *(symtab.*); /* Symbol table, must be LAST symbol! */
|
|---|
| 33 | *(.bss); /* uninitialized static variables */
|
|---|
| 34 | kdata_end = .;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | /DISCARD/ : {
|
|---|
| 38 | *(.note.GNU-stack);
|
|---|
| 39 | *(.comment);
|
|---|
| 40 | }
|
|---|
| 41 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.