summaryrefslogtreecommitdiffstats
path: root/kernel/linker.ld
blob: abee59697c92d2ee9ec60d2f9568dde7f7cd8dad (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ENTRY(_start)

SECTIONS
{
    . = 1M;

    .multiboot :
    {
        _startMultiboot = .;
        *(.multiboot)
        _endMultiboot = .;
    }

    .text BLOCK(4K) : ALIGN(4K)
    {
        _startText = .;
        *(.text)
        _endText = .;
    }

    .rodata BLOCK(4K) : ALIGN(4k)
    {
        _startRodata = .;
        *(.rodata)
        _endRodata = .;
    }

    .data BLOCK(4K) : ALIGN(4K)
    {
        _startData = .;
        *(.data)
        _endData = .;
    }

    .bss BLOCK(16K) : ALIGN(16K)
    {
        _startBss = .;
        *(.bss)
        _endBss = .;
    }

    .kheap BLOCK(4k) : ALIGN(4k)
    {
        _startKheap = .;
        *(.kheap)
        _endKheap = .;
    }

}