Last change
on this file since 68 was
63,
checked in by max@…, 7 years ago
|
move the ldscript into core/ for tsar
|
File size:
685 bytes
|
Line | |
---|
1 | /******************************************************************************* |
---|
2 | * This is the linker script for the ALMOS-MKH TSAR kernel. |
---|
3 | * It describes the memory layout for the "kernel.elf" binary file. |
---|
4 | ******************************************************************************/ |
---|
5 | |
---|
6 | /* Define the kernel code base address */ |
---|
7 | kernel_base = 0x4000; |
---|
8 | |
---|
9 | /* |
---|
10 | * Set the entry point of the boot-loader (e_entry field in the "boot.elf" |
---|
11 | * file header) |
---|
12 | */ |
---|
13 | |
---|
14 | ENTRY(kernel_init) |
---|
15 | |
---|
16 | /* |
---|
17 | * Describe how to group the sections |
---|
18 | */ |
---|
19 | SECTIONS |
---|
20 | { |
---|
21 | . = kernel_base; |
---|
22 | seg_kcode : |
---|
23 | { |
---|
24 | *(.text) |
---|
25 | *(.rodata*) |
---|
26 | } |
---|
27 | |
---|
28 | . = ALIGN(0x1000); |
---|
29 | |
---|
30 | seg_kdata : |
---|
31 | { |
---|
32 | *(.kinfo) |
---|
33 | *(.kidle) |
---|
34 | *(.kdata*) |
---|
35 | *(.data*) |
---|
36 | } |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.