source: trunk/kernel/kernel.ld @ 32

Last change on this file since 32 was 27, checked in by max@…, 7 years ago

cosmetic

File size: 685 bytes
RevLine 
[27]1/*******************************************************************************
2 * This is the linker script for the ALMOS-MKH TSAR kernel.
[1]3 * It describes the memory layout for the "kernel.elf" binary file.
[27]4 ******************************************************************************/
[1]5
[27]6/* Define the kernel code base address */
[11]7kernel_base = 0x4000;
[1]8
[27]9/*
10 * Set the entry point of the boot-loader (e_entry field in the "boot.elf"
11 * file header)
12 */
[1]13
14ENTRY(kernel_init)
15
[27]16/*
17 * Describe how to group the sections
18 */
[1]19SECTIONS
20{
[27]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        }
[1]37}
Note: See TracBrowser for help on using the repository browser.