1 | MEMORY
|
2 | {
|
3 | FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x10000
|
4 | SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x2000
|
5 | }
|
6 |
|
7 | /* Section Definitions */
|
8 | SECTIONS
|
9 | {
|
10 | .text :
|
11 | {
|
12 | KEEP(*(.isr_vector .isr_vector.*))
|
13 | *(.text .text.*)
|
14 | *(.gnu.linkonce.t.*)
|
15 | *(.glue_7)
|
16 | *(.glue_7t)
|
17 | *(.gcc_except_table)
|
18 | *(.rodata .rodata*)
|
19 | *(.gnu.linkonce.r.*)
|
20 | _etext = .;
|
21 | } > FLASH
|
22 |
|
23 | .data : AT (_etext)
|
24 | {
|
25 | _data = .;
|
26 | *(vtable vtable.*)
|
27 | *(.data .data.*)
|
28 | *(.gnu.linkonce.d*)
|
29 | . = ALIGN(4);
|
30 | _edata = . ;
|
31 | } > SRAM
|
32 |
|
33 | /* .bss section which is used for uninitialized data */
|
34 | .bss (NOLOAD) :
|
35 | {
|
36 | _bss = . ;
|
37 | *(.bss .bss.*)
|
38 | *(.gnu.linkonce.b*)
|
39 | *(COMMON)
|
40 | . = ALIGN(4);
|
41 | _ebss = . ;
|
42 | } > SRAM
|
43 |
|
44 | .stackarea (NOLOAD) :
|
45 | {
|
46 | . = ALIGN(8);
|
47 | *(.stackarea .stackarea.*)
|
48 | . = ALIGN(8);
|
49 | } > SRAM
|
50 |
|
51 | . = ALIGN(4);
|
52 | _end = . ;
|
53 | PROVIDE (end = .);
|
54 |
|
55 | /* Stabs debugging sections. */
|
56 | .stab 0 : { *(.stab) }
|
57 | .stabstr 0 : { *(.stabstr) }
|
58 | .stab.excl 0 : { *(.stab.excl) }
|
59 | .stab.exclstr 0 : { *(.stab.exclstr) }
|
60 | .stab.index 0 : { *(.stab.index) }
|
61 | .stab.indexstr 0 : { *(.stab.indexstr) }
|
62 | .comment 0 : { *(.comment) }
|
63 | /* DWARF debug sections.
|
64 | Symbols in the DWARF debugging sections are relative to the beginning
|
65 | of the section so we begin them at 0. */
|
66 | /* DWARF 1 */
|
67 | .debug 0 : { *(.debug) }
|
68 | .line 0 : { *(.line) }
|
69 | /* GNU DWARF 1 extensions */
|
70 | .debug_srcinfo 0 : { *(.debug_srcinfo) }
|
71 | .debug_sfnames 0 : { *(.debug_sfnames) }
|
72 | /* DWARF 1.1 and DWARF 2 */
|
73 | .debug_aranges 0 : { *(.debug_aranges) }
|
74 | .debug_pubnames 0 : { *(.debug_pubnames) }
|
75 | /* DWARF 2 */
|
76 | .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
77 | .debug_abbrev 0 : { *(.debug_abbrev) }
|
78 | .debug_line 0 : { *(.debug_line) }
|
79 | .debug_frame 0 : { *(.debug_frame) }
|
80 | .debug_str 0 : { *(.debug_str) }
|
81 | .debug_loc 0 : { *(.debug_loc) }
|
82 | .debug_macinfo 0 : { *(.debug_macinfo) }
|
83 | /* SGI/MIPS DWARF 2 extensions */
|
84 | .debug_weaknames 0 : { *(.debug_weaknames) }
|
85 | .debug_funcnames 0 : { *(.debug_funcnames) }
|
86 | .debug_typenames 0 : { *(.debug_typenames) }
|
87 | .debug_varnames 0 : { *(.debug_varnames) }
|
88 | }
|