-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathstm32_flash.ld
75 lines (61 loc) · 1.3 KB
/
stm32_flash.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
INCLUDE isr_vector.ld;
INCLUDE peripherals.ld;
__stack_end = 0x20020000; /* end of 128K RAM on AHB bus*/
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}
SECTIONS
{
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.stack_end))
KEEP(*(.isr_vector))
. = ALIGN(4);
} >FLASH
.text :
{
. = ALIGN(4);
*(.text)
*(.text*)
*(.rodata)
*(.rodata*)
*(.glue_7)
*(.glue_7t)
*(.eh_frame)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
} >FLASH
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
.ARM : {
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
} >FLASH
. = ALIGN(4);
__init_data_start = .;
.data : AT ( __init_data_start )
{
. = ALIGN(4);
__data_start = .;
*(.data)
*(.data*)
. = ALIGN(4);
__data_end = .;
} >RAM
.bss :
{
. = ALIGN(4);
__bss_start = .;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
__bss_end = .;
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}