aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
blob: 58da7ca28b404e7e9b4ee418db4acf1a29081271 (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
ENTRY(_start)
 
SECTIONS
{
    /* Starts at LOADER_ADDR. */
    . = 0x8000;
    __start = .;
    __text_start = .;
    .text :
    {
        KEEP(*(.text.boot))
        KEEP(*(.text.kernel))
        *(.text*)
    }
    . = ALIGN(4096); /* align to page size */
    __text_end = .;
 
    __data_start = .;
    .data :
    {
        *(.data*)
	__stacks_start = .;
	KEEP(*(.data.stacks))
    }
    . = ALIGN(4096); /* align to page size */
    __data_end = .;
 
    __bss_start = .;
    .bss :
    {
        bss = .;
        *(.bss*)
	KEEP(*(.bss.heap))
    }
    . = ALIGN(4096); /* align to page size */
    __bss_end = .;
    __end = .;
}