summaryrefslogtreecommitdiff
path: root/Kernel/linker.ld
blob: 12b0756823088b075ae4052336c6da76c508b3b1 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ENTRY(start)

SECTIONS
{
    . = 0x100000;

    .text BLOCK(4K) : ALIGN(4K)
    {
        Arch/i386/Boot/boot.ao
        *(.multiboot)
        *(.page_tables)
        start_of_kernel_text = .;
        *(.text)
        *(.text.startup)
        end_of_kernel_text = .;
    }

    .rodata BLOCK(4K) : ALIGN(4K)
    {
        start_ctors = .;
        *(.ctors)
        end_ctors = .;

        *(.rodata)
    }

    .data BLOCK(4K) : ALIGN(4K)
    {
        start_of_kernel_data = .;
        *(.data)
        end_of_kernel_data = .;
    }

    .bss BLOCK(4K) : ALIGN(4K)
    {
        start_of_kernel_bss = .;
        *(COMMON)
        *(.bss)
        end_of_kernel_bss = .;
    }
}