aboutsummaryrefslogtreecommitdiff
path: root/linker.old/mirai.linker
blob: 6f4d1a21cbd760b6b10dbfb59cdf6a34f3292018 (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
ENTRY(_start)

SECTIONS
{
    . = 0x100000;

    .text : ALIGN(4096)
    {
        *(.text*)
    }

    .rodata : ALIGN(4096)
    {
        *(.rodata*)
    }

    .data : ALIGN(4096)
    {
        *(.data*)
    }

    .bss : ALIGN(4096)
    {
        *(.bss*)
        *(COMMON)
    }

    /* Mark the end of the kernel for memory management */
    _kernel_end = .;
}