-
Notifications
You must be signed in to change notification settings - Fork 2
/
layout.ld
58 lines (48 loc) · 824 Bytes
/
layout.ld
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
/* RAM is 240K because 16K are reserved for the bootloader */
MEMORY
{
RAM : ORIGIN = 0x20004000, LENGTH = 240K
}
SECTIONS
{
.vector_table :
{
LONG(_estack)
KEEP(*(.reset))
} > RAM
.text :
{
*(.text*) /* .text* sections (code) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
*(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(8);
_etext = .;
} > RAM
ARM : {
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
} > RAM
__init_data = .;
.data : AT(__init_data)
{
_data = .;
*(.data*)
. = ALIGN (8);
_edata = .;
} > RAM
.bss :
{
_bss = .;
_stack = .;
. = . + 4096;
_estack = .;
*(.bss*)
*(COMMON)
_ebss = .;
} > RAM
/DISCARD/ :
{
*(.note.gnu.build-id*)
}
}