2 OUTPUT_FORMAT("${OUTPUT_FORMAT}","${OUTPUT_FORMAT}","${OUTPUT_FORMAT}")
7 text (rx) : ORIGIN = $ROM_START, LENGTH = $ROM_SIZE
8 data (rwx) : ORIGIN = $RAM_START, LENGTH = $RAM_SIZE
9 vectors (rw) : ORIGIN = 0xffe0, LENGTH = 0x20
14 /* Read-only sections, merged into text segment. */
15 ${TEXT_DYNAMIC+${DYNAMIC}}
16 .hash ${RELOCATING-0} : { *(.hash) }
17 .dynsym ${RELOCATING-0} : { *(.dynsym) }
18 .dynstr ${RELOCATING-0} : { *(.dynstr) }
19 .gnu.version ${RELOCATING-0} : { *(.gnu.version) }
20 .gnu.version_d ${RELOCATING-0} : { *(.gnu.version_d) }
21 .gnu.version_r ${RELOCATING-0} : { *(.gnu.version_r) }
23 .rel.init ${RELOCATING-0} : { *(.rel.init) }
24 .rela.init ${RELOCATING-0} : { *(.rela.init) }
25 .rel.text ${RELOCATING-0} :
28 ${RELOCATING+*(.rel.text.*)}
29 ${RELOCATING+*(.rel.gnu.linkonce.t*)}
31 .rela.text ${RELOCATING-0} :
34 ${RELOCATING+*(.rela.text.*)}
35 ${RELOCATING+*(.rela.gnu.linkonce.t*)}
37 .rel.fini ${RELOCATING-0} : { *(.rel.fini) }
38 .rela.fini ${RELOCATING-0} : { *(.rela.fini) }
39 .rel.rodata ${RELOCATING-0} :
42 ${RELOCATING+*(.rel.rodata.*)}
43 ${RELOCATING+*(.rel.gnu.linkonce.r*)}
45 .rela.rodata ${RELOCATING-0} :
48 ${RELOCATING+*(.rela.rodata.*)}
49 ${RELOCATING+*(.rela.gnu.linkonce.r*)}
51 .rel.data ${RELOCATING-0} :
54 ${RELOCATING+*(.rel.data.*)}
55 ${RELOCATING+*(.rel.gnu.linkonce.d*)}
57 .rela.data ${RELOCATING-0} :
60 ${RELOCATING+*(.rela.data.*)}
61 ${RELOCATING+*(.rela.gnu.linkonce.d*)}
63 .rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
64 .rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
65 .rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
66 .rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
67 .rel.got ${RELOCATING-0} : { *(.rel.got) }
68 .rela.got ${RELOCATING-0} : { *(.rela.got) }
69 .rel.bss ${RELOCATING-0} : { *(.rel.bss) }
70 .rela.bss ${RELOCATING-0} : { *(.rela.bss) }
71 .rel.plt ${RELOCATING-0} : { *(.rel.plt) }
72 .rela.plt ${RELOCATING-0} : { *(.rela.plt) }
74 /* Internal text space. */
77 ${RELOCATING+. = ALIGN(2);}
79 *(.init0) /* Start here after reset. */
85 *(.init6) /* C++ constructors. */
88 *(.init9) /* Call main(). */
90 ${CONSTRUCTING+ __ctors_start = . ; }
91 ${CONSTRUCTING+ *(.ctors) }
92 ${CONSTRUCTING+ __ctors_end = . ; }
93 ${CONSTRUCTING+ __dtors_start = . ; }
94 ${CONSTRUCTING+ *(.dtors) }
95 ${CONSTRUCTING+ __dtors_end = . ; }
97 ${RELOCATING+. = ALIGN(2);}
99 ${RELOCATING+. = ALIGN(2);}
102 ${RELOCATING+. = ALIGN(2);}
106 *(.fini6) /* C++ destructors. */
112 *(.fini0) /* Infinite loop after program termination. */
115 ${RELOCATING+ _etext = . ; }
116 } ${RELOCATING+ > text}
118 .data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
120 ${RELOCATING+ PROVIDE (__data_start = .) ; }
123 ${RELOCATING+. = ALIGN(2);}
124 ${RELOCATING+ _edata = . ; }
125 } ${RELOCATING+ > data}
127 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
129 ${RELOCATING+ PROVIDE (__bss_start = .) ; }
132 ${RELOCATING+ PROVIDE (__bss_end = .) ; }
133 ${RELOCATING+ _end = . ; }
134 } ${RELOCATING+ > data}
136 .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
138 ${RELOCATING+ PROVIDE (__noinit_start = .) ; }
141 ${RELOCATING+ PROVIDE (__noinit_end = .) ; }
142 ${RELOCATING+ _end = . ; }
143 } ${RELOCATING+ > data}
145 .vectors ${RELOCATING-0}:
147 ${RELOCATING+ PROVIDE (__vectors_start = .) ; }
149 ${RELOCATING+ _vectors_end = . ; }
150 } ${RELOCATING+ > vectors}
152 /* Stabs debugging sections. */
153 .stab 0 : { *(.stab) }
154 .stabstr 0 : { *(.stabstr) }
155 .stab.excl 0 : { *(.stab.excl) }
156 .stab.exclstr 0 : { *(.stab.exclstr) }
157 .stab.index 0 : { *(.stab.index) }
158 .stab.indexstr 0 : { *(.stab.indexstr) }
159 .comment 0 : { *(.comment) }
161 /* DWARF debug sections.
162 Symbols in the DWARF debugging sections are relative to the beginning
163 of the section so we begin them at 0. */
166 .debug 0 : { *(.debug) }
167 .line 0 : { *(.line) }
169 /* GNU DWARF 1 extensions */
170 .debug_srcinfo 0 : { *(.debug_srcinfo .zdebug_srcinfo) }
171 .debug_sfnames 0 : { *(.debug_sfnames .zdebug_sfnames) }
173 /* DWARF 1.1 and DWARF 2 */
174 .debug_aranges 0 : { *(.debug_aranges .zdebug_aranges) }
175 .debug_pubnames 0 : { *(.debug_pubnames .zdebug_pubnames) }
178 .debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*} .zdebug_info) }
179 .debug_abbrev 0 : { *(.debug_abbrev .zdebug_abbrev) }
180 .debug_line 0 : { *(.debug_line .zdebug_line) }
181 .debug_frame 0 : { *(.debug_frame .zdebug_frame) }
182 .debug_str 0 : { *(.debug_str .zdebug_str) }
183 .debug_loc 0 : { *(.debug_loc .zdebug_loc) }
184 .debug_macinfo 0 : { *(.debug_macinfo .zdebug_macinfo) }
186 PROVIDE (__stack = ${STACK}) ;
187 PROVIDE (__data_start_rom = _etext) ;
188 PROVIDE (__data_end_rom = _etext + SIZEOF (.data)) ;
189 PROVIDE (__noinit_start_rom = _etext + SIZEOF (.data)) ;
190 PROVIDE (__noinit_end_rom = _etext + SIZEOF (.data) + SIZEOF (.noinit)) ;