Rev | Line | |
---|
[1] | 1 | /********************************************************************************************** |
---|
| 2 | * This is the linker script for the ALMOS-MK kernel. |
---|
| 3 | * It describes the memory layout for the "kernel.elf" binary file. |
---|
| 4 | *********************************************************************************************/ |
---|
| 5 | |
---|
| 6 | /* define the kernel code base address */ |
---|
| 7 | |
---|
[11] | 8 | kernel_base = 0x4000; |
---|
[1] | 9 | |
---|
| 10 | /* Set the entry point of the boot-loader (e_entry field in the "boot.elf" file header) */ |
---|
| 11 | |
---|
| 12 | ENTRY(kernel_init) |
---|
| 13 | |
---|
| 14 | /* Describe how to group the sections */ |
---|
| 15 | |
---|
| 16 | SECTIONS |
---|
| 17 | { |
---|
| 18 | . = kernel_base; |
---|
[11] | 19 | seg_kcode : |
---|
[1] | 20 | { |
---|
| 21 | *(.text) |
---|
| 22 | *(.rodata*) |
---|
| 23 | } |
---|
| 24 | . = ALIGN(0x1000); |
---|
[11] | 25 | seg_kdata : |
---|
[1] | 26 | { |
---|
[11] | 27 | *(.kinfo) |
---|
[14] | 28 | *(.kidle) |
---|
[11] | 29 | *(.kdata*) |
---|
[1] | 30 | *(.data*) |
---|
| 31 | } |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.