summaryrefslogtreecommitdiff
path: root/kernel/src/linker.ld
blob: cca621e6ef810567a26428080c00e3127bf5bfca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ENTRY(start)

SECTIONS {
    . = 1M;
    
    .boot :
    {
        /* ensure that the multiboot heater is at the beginning */
        KEEP(*(.multiboot_header))
    }

    .text :
    {
        *(.text)
    }
    .rodata : 
    {
        *(.rodata)
    }
    .bss :
    {
        *(.bss)
    }
    /*[Guard page]*/
    . += 2M;
}