2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
7 text : ORIGIN = ${TEXT_START_ADDR}, LENGTH = ${TEXT_SIZE}
8 data : ORIGIN = ${DATA_START_ADDR}, LENGTH = ${DATA_SIZE}
9 emem : ORIGIN = ${EMEM_START_ADDR}, LENGTH = ${EMEM_SIZE}
14 /* Internal text space */
15 .stext ${RELOCATING-0} :
17 ${RELOCATING+ PROVIDE (__stext_start = .) ; }
19 ${RELOCATING+ PROVIDE (__stext_end = .) ; }
20 } ${RELOCATING+ > text}
23 .etext ${RELOCATING-0} :
25 ${RELOCATING+ PROVIDE (__etext_start = .) ; }
27 ${RELOCATING+ PROVIDE (__etext_end = .) ; }
28 } ${RELOCATING+ > emem}
30 /* Internal text space or external memory */
33 ${RELOCATING+ PROVIDE (__text_start = .) ; }
38 ${RELOCATING+ PROVIDE (__text_end = .) ; }
39 ${RELOCATING+ _etext = . ; }
40 } ${RELOCATING+ > ${TEXT_MEMORY}}
42 /* Internal data space */
43 .sdata ${RELOCATING-0} :
45 ${RELOCATING+ PROVIDE (__sdata_start = .) ; }
47 ${RELOCATING+ PROVIDE (__sdata_end = .) ; }
48 } ${RELOCATING+ > data}
51 .edata ${RELOCATING-0} :
53 ${RELOCATING+ PROVIDE (__edata_start = .) ; }
55 ${RELOCATING+ PROVIDE (__edata_end = .) ; }
56 } ${RELOCATING+ > emem}
58 /* Internal data space or external memory */
59 .strings ${RELOCATING-0} : { *(.strings) } ${RELOCATING+ > ${DATA_MEMORY}}
60 .rodata ${RELOCATING-0} : { *(.rodata) } ${RELOCATING+ > ${DATA_MEMORY}}
61 .rodata1 ${RELOCATING-0} : { *(.rodata1) } ${RELOCATING+ > ${DATA_MEMORY}}
62 .data1 ${RELOCATING-0} : { *(.data1) } ${RELOCATING+ > ${DATA_MEMORY}}
64 .ctors ${RELOCATING-0} :
66 ${CONSTRUCTING+${CTOR_START}}
68 ${CONSTRUCTING+${CTOR_END}}
69 } ${RELOCATING+ > ${DATA_MEMORY}}
71 .dtors ${RELOCATING-0} :
73 ${CONSTRUCTING+${DTOR_START}}
75 ${CONSTRUCTING+${DTOR_END}}
76 } ${RELOCATING+ > ${DATA_MEMORY}}
78 .data ${RELOCATING-0} :
82 ${CONSTRUCTING+CONSTRUCTORS}
83 ${RELOCATING+ _edata = . ; }
84 } ${RELOCATING+ > ${DATA_MEMORY}}
86 .sbss ${RELOCATING-0} :
88 ${RELOCATING+ PROVIDE (__sbss_start = .) ; }
90 ${RELOCATING+ PROVIDE (__sbss_end = .) ; }
91 } ${RELOCATING+ > data}
93 .ebss ${RELOCATING-0} :
95 ${RELOCATING+ PROVIDE (__ebss_start = .) ; }
97 ${RELOCATING+ PROVIDE (__ebss_end = .) ; }
98 } ${RELOCATING+ > data}
100 .bss ${RELOCATING-0} :
102 ${RELOCATING+ PROVIDE (__bss_start = .) ; }
105 ${RELOCATING+ PROVIDE (__bss_end = .) ; }
106 ${RELOCATING+ _end = . ; }
107 } ${RELOCATING+ > ${DATA_MEMORY}}
109 /* Stabs debugging sections. */
110 .stab 0 : { *(.stab) }
111 .stabstr 0 : { *(.stabstr) }
112 .stab.excl 0 : { *(.stab.excl) }
113 .stab.exclstr 0 : { *(.stab.exclstr) }
114 .stab.index 0 : { *(.stab.index) }
115 .stab.indexstr 0 : { *(.stab.indexstr) }
117 .comment 0 : { *(.comment) }
119 /* DWARF debug sections.
120 Symbols in the DWARF debugging sections are relative to the beginning
121 of the section so we begin them at 0. */
124 .debug 0 : { *(.debug) }
125 .line 0 : { *(.line) }
127 /* GNU DWARF 1 extensions */
128 .debug_srcinfo 0 : { *(.debug_srcinfo) }
129 .debug_sfnames 0 : { *(.debug_sfnames) }
131 /* DWARF 1.1 and DWARF 2 */
132 .debug_aranges 0 : { *(.debug_aranges) }
133 .debug_pubnames 0 : { *(.debug_pubnames) }
136 .debug_info 0 : { *(.debug_info) }
137 .debug_abbrev 0 : { *(.debug_abbrev) }
138 .debug_line 0 : { *(.debug_line) }
139 .debug_frame 0 : { *(.debug_frame) }
140 .debug_str 0 : { *(.debug_str) }
141 .debug_loc 0 : { *(.debug_loc) }
142 .debug_macinfo 0 : { *(.debug_macinfo) }
144 PROVIDE (__stack = ${STACK_START_ADDR});