aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
blob: 62ae053ccebd5ec2b778b97c59ef81ff72466b86 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ENTRY(_start)
 
SECTIONS
{
	. = 0x4000;
	__ttbr = .;
	/* Starts at LOADER_ADDR. */
	. = 0x8000;
	__start = .;
	__text_start = .;
	.text :
	{
		KEEP(*(.text.boot))
		KEEP(*(.text.exceptions))
		KEEP(*(.text.kernel))
		*(.text*)
    }
    . = ALIGN(4096);
    __text_end = .;

    __data_start = .;
    .data :
    {
	    *(.data*)
    }
    . = ALIGN(4096); /* align to page size */
    __data_end = .;

    __bss_start = .;
    .bss :
    {
	    bss = .;
	    . = ALIGN(4096);
	    KEEP(*(.bss.estacks))
	    . = ALIGN(4096);
	    KEEP(*(.bss.kmem))
	    . = ALIGN(4096);
	    KEEP(*(.bss.threadl))
	    . = ALIGN(4096);
	    KEEP(*(.bss.threads))
	    . = ALIGN(4096);
	    KEEP(*(.bss.threade))
	    . = ALIGN(4096);
	    KEEP(*(.bss.mutexl))
	    . = ALIGN(4096);
	    KEEP(*(.bss.mutexs))
	    . = ALIGN(4096);
	    *(.bss)
		    *(.bss.*)
		    KEEP(*(.bss.mmheap))
		    KEEP(*(.bss.mmheap.base))
    }
    . = ALIGN(4096); /* align to page size */
    __bss_end = .;
    __end = .;
    /DISCARD/ : {
	    *(.ARM.attributes*)
		    *(.comment*)
		    *(.debug*)
    }
}