summaryrefslogtreecommitdiff
path: root/kernel/src/linker.ld
blob: ab508e5ac7b289fdc34fa5ebf6d76f35b0063f69 (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
27
ENTRY(start)

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

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