summaryrefslogtreecommitdiffstats
path: root/kernel/linker.ld
blob: ae4d98d55e2bf3da2387f1c5947cc77f915c9cd9 (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
ENTRY(_start)

SECTIONS
{
    . = 1M;

    .multiboot :
    {
        *(.multiboot)
    }
    .text BLOCK(4K) : ALIGN(4K)
    {
        *(.text)
        *(.eh_frame)
        *(.ctors)
    }

    .rodata BLOCK(4K) : ALIGN(4k)
    {
        *(.rodata)
    }

    .data BLOCK(4K) : ALIGN(4K)
    {
        *(.data)
    }

    .bss BLOCK(4K) : ALIGN(4K)
    {
        *(COMMON)
        *(.bss)
    }
}