2 # Unusual variables checked by this code:
3 # NOP - four byte opcode for no-op (defaults to 0)
4 # NO_SMALL_DATA - no .sbss/.sbss2/.sdata/.sdata2 sections if not
6 # SMALL_DATA_CTOR - .ctors contains small data.
7 # SMALL_DATA_DTOR - .dtors contains small data.
8 # DATA_ADDR - if end-of-text-plus-one-page isn't right for data start
9 # INITIAL_READONLY_SECTIONS - at start of text segment
10 # OTHER_READONLY_SECTIONS - other than .text .init .rodata ...
11 # (e.g., .PARISC.milli)
12 # OTHER_TEXT_SECTIONS - these get put in .text when relocating
13 # OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ...
14 # (e.g., .PARISC.global)
15 # OTHER_RELRO_SECTIONS - other than .data.rel.ro ...
16 # (e.g. PPC32 .fixup, .got[12])
17 # OTHER_BSS_SECTIONS - other than .bss .sbss ...
18 # OTHER_SECTIONS - at the end
19 # EXECUTABLE_SYMBOLS - symbols that must be defined for an
20 # executable (e.g., _DYNAMIC_LINK)
21 # TEXT_START_ADDR - the first byte of the text segment, after any
23 # TEXT_BASE_ADDRESS - the first byte of the text segment.
24 # TEXT_START_SYMBOLS - symbols that appear at the start of the
26 # DATA_START_SYMBOLS - symbols that appear at the start of the
28 # OTHER_GOT_SYMBOLS - symbols defined just before .got.
29 # OTHER_GOT_SECTIONS - sections just after .got.
30 # OTHER_SDATA_SECTIONS - sections just after .sdata.
31 # OTHER_BSS_SYMBOLS - symbols that appear at the start of the
32 # .bss section besides __bss_start.
33 # DATA_PLT - .plt should be in data segment, not text segment.
34 # PLT_BEFORE_GOT - .plt just before .got when .plt is in data segement.
35 # BSS_PLT - .plt should be in bss segment
36 # TEXT_DYNAMIC - .dynamic in text segment, not data segment.
37 # EMBEDDED - whether this is for an embedded system.
38 # SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set
39 # start address of shared library.
40 # INPUT_FILES - INPUT command of files to always include
41 # WRITABLE_RODATA - if set, the .rodata section should be writable
42 # INIT_START, INIT_END - statements just before and just after
43 # combination of .init sections.
44 # FINI_START, FINI_END - statements just before and just after
45 # combination of .fini sections.
46 # STACK_ADDR - start of a .stack section.
47 # OTHER_END_SYMBOLS - symbols to place right at the end of the script.
48 # SEPARATE_GOTPLT - if set, .got.plt should be separate output section,
49 # so that .got can be in the RELRO area. It should be set to
50 # the number of bytes in the beginning of .got.plt which can be
51 # in the RELRO area as well.
53 # When adding sections, do note that the names of some sections are used
54 # when specifying the start address of the next.
57 # Many sections come in three flavours. There is the 'real' section,
58 # like ".data". Then there are the per-procedure or per-variable
59 # sections, generated by -ffunction-sections and -fdata-sections in GCC,
60 # and useful for --gc-sections, which for a variable "foo" might be
61 # ".data.foo". Then there are the linkonce sections, for which the linker
62 # eliminates duplicates, which are named like ".gnu.linkonce.d.foo".
63 # The exact correspondences are:
65 # Section Linkonce section
66 # .text .gnu.linkonce.t.foo
67 # .rodata .gnu.linkonce.r.foo
68 # .data .gnu.linkonce.d.foo
69 # .bss .gnu.linkonce.b.foo
70 # .sdata .gnu.linkonce.s.foo
71 # .sbss .gnu.linkonce.sb.foo
72 # .sdata2 .gnu.linkonce.s2.foo
73 # .sbss2 .gnu.linkonce.sb2.foo
74 # .debug_info .gnu.linkonce.wi.foo
75 # .tdata .gnu.linkonce.td.foo
76 # .tbss .gnu.linkonce.tb.foo
78 # Each of these can also have corresponding .rel.* and .rela.* sections.
80 test -z "$ENTRY" && ENTRY=_start
81 test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
82 test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
83 if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
84 test -z "${ELFSIZE}" && ELFSIZE=32
85 test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8"
86 test "$LD_FLAG" = "N" && DATA_ADDR=.
87 test -n "$CREATE_SHLIB$CREATE_PIE" && test -n "$SHLIB_DATA_ADDR" && COMMONPAGESIZE=""
88 test -z "$CREATE_SHLIB$CREATE_PIE" && test -n "$DATA_ADDR" && COMMONPAGESIZE=""
89 test -n "$RELRO_NOW" && unset SEPARATE_GOTPLT
90 DATA_SEGMENT_ALIGN="ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))"
91 DATA_SEGMENT_RELRO_END=""
92 DATA_SEGMENT_RELRO_GOTPLT_END=""
94 if test -n "${COMMONPAGESIZE}"; then
95 DATA_SEGMENT_ALIGN="ALIGN (${SEGMENT_SIZE}) - ((${MAXPAGESIZE} - .) & (${MAXPAGESIZE} - 1)); . = DATA_SEGMENT_ALIGN (${MAXPAGESIZE}, ${COMMONPAGESIZE})"
96 DATA_SEGMENT_END=". = DATA_SEGMENT_END (.);"
97 if test -n "${SEPARATE_GOTPLT}"; then
98 DATA_SEGMENT_RELRO_GOTPLT_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT}, .);"
100 DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (0, .);"
103 INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
104 PLT=".plt ${RELOCATING-0} : { *(.plt) }"
105 if test -z "$GOT"; then
106 if test -z "$SEPARATE_GOTPLT"; then
107 GOT=".got ${RELOCATING-0} : { *(.got.plt) *(.got) }"
109 GOT=".got ${RELOCATING-0} : { *(.got) }"
110 GOTPLT="${RELOCATING+${DATA_SEGMENT_RELRO_GOTPLT_END}}
111 .got.plt ${RELOCATING-0} : { *(.got.plt) }"
114 DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }"
115 RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }"
116 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }"
117 STACKNOTE="/DISCARD/ : { *(.note.GNU-stack) }"
118 if test -z "${NO_SMALL_DATA}"; then
119 SBSS=".sbss ${RELOCATING-0} :
121 ${RELOCATING+PROVIDE (__sbss_start = .);}
122 ${RELOCATING+PROVIDE (___sbss_start = .);}
124 *(.sbss${RELOCATING+ .sbss.* .gnu.linkonce.sb.*})
126 ${RELOCATING+PROVIDE (__sbss_end = .);}
127 ${RELOCATING+PROVIDE (___sbss_end = .);}
129 SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2${RELOCATING+ .sbss2.* .gnu.linkonce.sb2.*}) }"
130 SDATA="/* We want the small data sections together, so single-instruction offsets
131 can access them all, and initialized data all before uninitialized, so
132 we can shorten the on-disk segment size. */
133 .sdata ${RELOCATING-0} :
135 ${RELOCATING+${SDATA_START_SYMBOLS}}
136 *(.sdata${RELOCATING+ .sdata.* .gnu.linkonce.s.*})
138 SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2${RELOCATING+ .sdata2.* .gnu.linkonce.s2.*}) }"
139 REL_SDATA=".rel.sdata ${RELOCATING-0} : { *(.rel.sdata${RELOCATING+ .rel.sdata.* .rel.gnu.linkonce.s.*}) }
140 .rela.sdata ${RELOCATING-0} : { *(.rela.sdata${RELOCATING+ .rela.sdata.* .rela.gnu.linkonce.s.*}) }"
141 REL_SBSS=".rel.sbss ${RELOCATING-0} : { *(.rel.sbss${RELOCATING+ .rel.sbss.* .rel.gnu.linkonce.sb.*}) }
142 .rela.sbss ${RELOCATING-0} : { *(.rela.sbss${RELOCATING+ .rela.sbss.* .rela.gnu.linkonce.sb.*}) }"
143 REL_SDATA2=".rel.sdata2 ${RELOCATING-0} : { *(.rel.sdata2${RELOCATING+ .rel.sdata2.* .rel.gnu.linkonce.s2.*}) }
144 .rela.sdata2 ${RELOCATING-0} : { *(.rela.sdata2${RELOCATING+ .rela.sdata2.* .rela.gnu.linkonce.s2.*}) }"
145 REL_SBSS2=".rel.sbss2 ${RELOCATING-0} : { *(.rel.sbss2${RELOCATING+ .rel.sbss2.* .rel.gnu.linkonce.sb2.*}) }
146 .rela.sbss2 ${RELOCATING-0} : { *(.rela.sbss2${RELOCATING+ .rela.sbss2.* .rela.gnu.linkonce.sb2.*}) }"
150 test -n "$SEPARATE_GOTPLT" && SEPARATE_GOTPLT=" "
151 CTOR=".ctors ${CONSTRUCTING-0} :
153 ${CONSTRUCTING+${CTOR_START}}
154 /* gcc uses crtbegin.o to find the start of
155 the constructors, so we make sure it is
156 first. Because this is a wildcard, it
157 doesn't matter if the user does not
158 actually link against crtbegin.o; the
159 linker won't look for a file to match a
160 wildcard. The wildcard also means that it
161 doesn't matter which directory crtbegin.o
164 KEEP (*crtbegin*.o(.ctors))
166 /* We don't want to include the .ctor section from
167 from the crtend.o file until after the sorted ctors.
168 The .ctor section from the crtend file contains the
169 end of ctors marker and it must be last */
171 KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .ctors))
172 KEEP (*(SORT(.ctors.*)))
174 ${CONSTRUCTING+${CTOR_END}}
176 DTOR=".dtors ${CONSTRUCTING-0} :
178 ${CONSTRUCTING+${DTOR_START}}
179 KEEP (*crtbegin*.o(.dtors))
180 KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .dtors))
181 KEEP (*(SORT(.dtors.*)))
183 ${CONSTRUCTING+${DTOR_END}}
185 STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} :
187 ${RELOCATING+_stack = .;}
191 # if this is for an embedded system, don't add SIZEOF_HEADERS.
192 if [ -z "$EMBEDDED" ]; then
193 test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS"
195 test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}"
199 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
200 "${LITTLE_OUTPUT_FORMAT}")
201 OUTPUT_ARCH(${OUTPUT_ARCH})
204 ${RELOCATING+${LIB_SEARCH_DIRS}}
205 ${RELOCATING+/* Do we need any of these for elf?
206 __DYNAMIC = 0; ${STACKZERO+${STACKZERO}} ${SHLIB_PATH+${SHLIB_PATH}} */}
207 ${RELOCATING+${EXECUTABLE_SYMBOLS}}
208 ${RELOCATING+${INPUT_FILES}}
209 ${RELOCATING- /* For some reason, the Solaris linker makes bad executables
210 if gld -r is used and the intermediate file has sections starting
211 at non-zero addresses. Could be a Solaris ld bug, could be a GNU ld
212 bug. But for now assigning the zero vmas works. */}
216 /* Read-only sections, merged into text segment: */
217 ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+PROVIDE (__executable_start = ${TEXT_START_ADDR}); . = ${TEXT_BASE_ADDRESS};}}}
218 ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
219 ${CREATE_PIE+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
220 ${CREATE_SHLIB-${INTERP}}
221 ${INITIAL_READONLY_SECTIONS}
222 ${TEXT_DYNAMIC+${DYNAMIC}}
223 .hash ${RELOCATING-0} : { *(.hash) }
224 .dynsym ${RELOCATING-0} : { *(.dynsym) }
225 .dynstr ${RELOCATING-0} : { *(.dynstr) }
226 .gnu.version ${RELOCATING-0} : { *(.gnu.version) }
227 .gnu.version_d ${RELOCATING-0}: { *(.gnu.version_d) }
228 .gnu.version_r ${RELOCATING-0}: { *(.gnu.version_r) }
231 if [ "x$COMBRELOC" = x ]; then
234 COMBRELOCCAT="cat > $COMBRELOC"
236 eval $COMBRELOCCAT <<EOF
237 .rel.init ${RELOCATING-0} : { *(.rel.init) }
238 .rela.init ${RELOCATING-0} : { *(.rela.init) }
239 .rel.text ${RELOCATING-0} : { *(.rel.text${RELOCATING+ .rel.text.* .rel.gnu.linkonce.t.*}) }
240 .rela.text ${RELOCATING-0} : { *(.rela.text${RELOCATING+ .rela.text.* .rela.gnu.linkonce.t.*}) }
241 .rel.fini ${RELOCATING-0} : { *(.rel.fini) }
242 .rela.fini ${RELOCATING-0} : { *(.rela.fini) }
243 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata${RELOCATING+ .rel.rodata.* .rel.gnu.linkonce.r.*}) }
244 .rela.rodata ${RELOCATING-0} : { *(.rela.rodata${RELOCATING+ .rela.rodata.* .rela.gnu.linkonce.r.*}) }
245 ${OTHER_READONLY_RELOC_SECTIONS}
246 .rel.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
247 .rela.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
248 .rel.data ${RELOCATING-0} : { *(.rel.data${RELOCATING+ .rel.data.* .rel.gnu.linkonce.d.*}) }
249 .rela.data ${RELOCATING-0} : { *(.rela.data${RELOCATING+ .rela.data.* .rela.gnu.linkonce.d.*}) }
250 .rel.tdata ${RELOCATING-0} : { *(.rel.tdata${RELOCATING+ .rel.tdata.* .rel.gnu.linkonce.td.*}) }
251 .rela.tdata ${RELOCATING-0} : { *(.rela.tdata${RELOCATING+ .rela.tdata.* .rela.gnu.linkonce.td.*}) }
252 .rel.tbss ${RELOCATING-0} : { *(.rel.tbss${RELOCATING+ .rel.tbss.* .rel.gnu.linkonce.tb.*}) }
253 .rela.tbss ${RELOCATING-0} : { *(.rela.tbss${RELOCATING+ .rela.tbss.* .rela.gnu.linkonce.tb.*}) }
254 .rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
255 .rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
256 .rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
257 .rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
258 .rel.got ${RELOCATING-0} : { *(.rel.got) }
259 .rela.got ${RELOCATING-0} : { *(.rela.got) }
260 ${OTHER_GOT_RELOC_SECTIONS}
265 .rel.bss ${RELOCATING-0} : { *(.rel.bss${RELOCATING+ .rel.bss.* .rel.gnu.linkonce.b.*}) }
266 .rela.bss ${RELOCATING-0} : { *(.rela.bss${RELOCATING+ .rela.bss.* .rela.gnu.linkonce.b.*}) }
268 if [ -n "$COMBRELOC" ]; then
270 .rel.dyn ${RELOCATING-0} :
273 sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rela\./d;s/^.*: { *\(.*\)}$/ \1/' $COMBRELOC
276 .rela.dyn ${RELOCATING-0} :
279 sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rel\./d;s/^.*: { *\(.*\)}/ \1/' $COMBRELOC
285 .rel.plt ${RELOCATING-0} : { *(.rel.plt) }
286 .rela.plt ${RELOCATING-0} : { *(.rela.plt) }
287 ${OTHER_PLT_RELOC_SECTIONS}
289 .init ${RELOCATING-0} :
291 ${RELOCATING+${INIT_START}}
293 ${RELOCATING+${INIT_END}}
296 ${DATA_PLT-${BSS_PLT-${PLT}}}
297 .text ${RELOCATING-0} :
299 ${RELOCATING+${TEXT_START_SYMBOLS}}
300 *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
301 KEEP (*(.text.*personality*))
302 /* .gnu.warning sections are handled specially by elf32.em. */
304 ${RELOCATING+${OTHER_TEXT_SECTIONS}}
306 .fini ${RELOCATING-0} :
308 ${RELOCATING+${FINI_START}}
310 ${RELOCATING+${FINI_END}}
312 ${RELOCATING+PROVIDE (__etext = .);}
313 ${RELOCATING+PROVIDE (_etext = .);}
314 ${RELOCATING+PROVIDE (etext = .);}
315 ${WRITABLE_RODATA-${RODATA}}
316 .rodata1 ${RELOCATING-0} : { *(.rodata1) }
317 ${CREATE_SHLIB-${SDATA2}}
318 ${CREATE_SHLIB-${SBSS2}}
319 ${OTHER_READONLY_SECTIONS}
320 .eh_frame_hdr : { *(.eh_frame_hdr) }
321 .eh_frame ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) }
322 .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
324 /* Adjust the address for the data segment. We want to adjust up to
325 the same address within the page on the next page up. */
326 ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}}
327 ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
328 ${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
330 /* Exception handling */
331 .eh_frame ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
332 .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
334 /* Thread Local Storage sections */
335 .tdata ${RELOCATING-0} : { *(.tdata${RELOCATING+ .tdata.* .gnu.linkonce.td.*}) }
336 .tbss ${RELOCATING-0} : { *(.tbss${RELOCATING+ .tbss.* .gnu.linkonce.tb.*})${RELOCATING+ *(.tcommon)} }
338 /* Ensure the __preinit_array_start label is properly aligned. We
339 could instead move the label definition inside the section, but
340 the linker would then create the section even if it turns out to
341 be empty, which isn't pretty. */
342 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
343 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_start = .);}}
344 .preinit_array ${RELOCATING-0} : { KEEP (*(.preinit_array)) }
345 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_end = .);}}
347 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_start = .);}}
348 .init_array ${RELOCATING-0} : { KEEP (*(.init_array)) }
349 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_end = .);}}
351 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__fini_array_start = .);}}
352 .fini_array ${RELOCATING-0} : { KEEP (*(.fini_array)) }
353 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__fini_array_end = .);}}
355 ${SMALL_DATA_CTOR-${RELOCATING+${CTOR}}}
356 ${SMALL_DATA_DTOR-${RELOCATING+${DTOR}}}
357 .jcr ${RELOCATING-0} : { KEEP (*(.jcr)) }
359 ${RELOCATING+${DATARELRO}}
360 ${OTHER_RELRO_SECTIONS}
361 ${TEXT_DYNAMIC-${DYNAMIC}}
362 ${NO_SMALL_DATA+${RELRO_NOW+${GOT}}}
363 ${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT+${GOT}}}}
364 ${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT+${GOTPLT}}}}
365 ${RELOCATING+${DATA_SEGMENT_RELRO_END}}
366 ${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT-${GOT}}}}
368 ${DATA_PLT+${PLT_BEFORE_GOT-${PLT}}}
370 .data ${RELOCATING-0} :
372 ${RELOCATING+${DATA_START_SYMBOLS}}
373 *(.data${RELOCATING+ .data.* .gnu.linkonce.d.*})
374 KEEP (*(.gnu.linkonce.d.*personality*))
375 ${CONSTRUCTING+SORT(CONSTRUCTORS)}
377 .data1 ${RELOCATING-0} : { *(.data1) }
378 ${WRITABLE_RODATA+${RODATA}}
379 ${OTHER_READWRITE_SECTIONS}
380 ${SMALL_DATA_CTOR+${RELOCATING+${CTOR}}}
381 ${SMALL_DATA_DTOR+${RELOCATING+${DTOR}}}
382 ${DATA_PLT+${PLT_BEFORE_GOT+${PLT}}}
383 ${RELOCATING+${OTHER_GOT_SYMBOLS}}
384 ${NO_SMALL_DATA-${GOT}}
385 ${OTHER_GOT_SECTIONS}
386 ${CREATE_SHLIB+${SDATA2}}
387 ${CREATE_SHLIB+${SBSS2}}
389 ${OTHER_SDATA_SECTIONS}
390 ${RELOCATING+_edata = .;}
391 ${RELOCATING+PROVIDE (edata = .);}
392 ${RELOCATING+__bss_start = .;}
393 ${RELOCATING+${OTHER_BSS_SYMBOLS}}
396 .bss ${RELOCATING-0} :
399 *(.bss${RELOCATING+ .bss.* .gnu.linkonce.b.*})
401 /* Align here to ensure that the .bss section occupies space up to
402 _end. Align after .bss to ensure correct alignment even if the
403 .bss section disappears because there are no input sections. */
404 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
406 ${OTHER_BSS_SECTIONS}
407 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
408 ${RELOCATING+_end = .;}
409 ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
410 ${RELOCATING+PROVIDE (end = .);}
411 ${RELOCATING+${DATA_SEGMENT_END}}
413 /* Stabs debugging sections. */
414 .stab 0 : { *(.stab) }
415 .stabstr 0 : { *(.stabstr) }
416 .stab.excl 0 : { *(.stab.excl) }
417 .stab.exclstr 0 : { *(.stab.exclstr) }
418 .stab.index 0 : { *(.stab.index) }
419 .stab.indexstr 0 : { *(.stab.indexstr) }
421 .comment 0 : { *(.comment) }
423 /* DWARF debug sections.
424 Symbols in the DWARF debugging sections are relative to the beginning
425 of the section so we begin them at 0. */
428 .debug 0 : { *(.debug) }
429 .line 0 : { *(.line) }
431 /* GNU DWARF 1 extensions */
432 .debug_srcinfo 0 : { *(.debug_srcinfo) }
433 .debug_sfnames 0 : { *(.debug_sfnames) }
435 /* DWARF 1.1 and DWARF 2 */
436 .debug_aranges 0 : { *(.debug_aranges) }
437 .debug_pubnames 0 : { *(.debug_pubnames) }
440 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
441 .debug_abbrev 0 : { *(.debug_abbrev) }
442 .debug_line 0 : { *(.debug_line) }
443 .debug_frame 0 : { *(.debug_frame) }
444 .debug_str 0 : { *(.debug_str) }
445 .debug_loc 0 : { *(.debug_loc) }
446 .debug_macinfo 0 : { *(.debug_macinfo) }
448 /* SGI/MIPS DWARF 2 extensions */
449 .debug_weaknames 0 : { *(.debug_weaknames) }
450 .debug_funcnames 0 : { *(.debug_funcnames) }
451 .debug_typenames 0 : { *(.debug_typenames) }
452 .debug_varnames 0 : { *(.debug_varnames) }
454 ${STACK_ADDR+${STACK}}
456 ${RELOCATING+${OTHER_END_SYMBOLS}}
457 ${RELOCATING+${STACKNOTE}}