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 # DATA_ADDR - if end-of-text-plus-one-page isn't right for data start
7 # INITIAL_READONLY_SECTIONS - at start of text segment
8 # OTHER_READONLY_SECTIONS - other than .text .init .rodata ...
9 # (e.g., .PARISC.milli)
10 # OTHER_TEXT_SECTIONS - these get put in .text when relocating
11 # OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ...
12 # (e.g., .PARISC.global)
13 # OTHER_RELRO_SECTIONS - other than .data.rel.ro ...
14 # (e.g. PPC32 .fixup, .got[12])
15 # OTHER_BSS_SECTIONS - other than .bss .sbss ...
16 # OTHER_SECTIONS - at the end
17 # EXECUTABLE_SYMBOLS - symbols that must be defined for an
18 # executable (e.g., _DYNAMIC_LINK)
19 # TEXT_START_SYMBOLS - symbols that appear at the start of the
21 # DATA_START_SYMBOLS - symbols that appear at the start of the
23 # OTHER_GOT_SYMBOLS - symbols defined just before .got.
24 # OTHER_GOT_SECTIONS - sections just after .got.
25 # OTHER_SDATA_SECTIONS - sections just after .sdata.
26 # OTHER_BSS_SYMBOLS - symbols that appear at the start of the
27 # .bss section besides __bss_start.
28 # DATA_PLT - .plt should be in data segment, not text segment.
29 # BSS_PLT - .plt should be in bss segment
30 # TEXT_DYNAMIC - .dynamic in text segment, not data segment.
31 # EMBEDDED - whether this is for an embedded system.
32 # SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set
33 # start address of shared library.
34 # INPUT_FILES - INPUT command of files to always include
35 # WRITABLE_RODATA - if set, the .rodata section should be writable
36 # INIT_START, INIT_END - statements just before and just after
37 # combination of .init sections.
38 # FINI_START, FINI_END - statements just before and just after
39 # combination of .fini sections.
40 # STACK_ADDR - start of a .stack section.
41 # OTHER_END_SYMBOLS - symbols to place right at the end of the script.
42 # SEPARATE_GOTPLT - if set, .got.plt should be separate output section,
43 # so that .got can be in the RELRO area. It should be set to
44 # the number of bytes in the beginning of .got.plt which can be
45 # in the RELRO area as well.
47 # When adding sections, do note that the names of some sections are used
48 # when specifying the start address of the next.
51 # Many sections come in three flavours. There is the 'real' section,
52 # like ".data". Then there are the per-procedure or per-variable
53 # sections, generated by -ffunction-sections and -fdata-sections in GCC,
54 # and useful for --gc-sections, which for a variable "foo" might be
55 # ".data.foo". Then there are the linkonce sections, for which the linker
56 # eliminates duplicates, which are named like ".gnu.linkonce.d.foo".
57 # The exact correspondences are:
59 # Section Linkonce section
60 # .text .gnu.linkonce.t.foo
61 # .rodata .gnu.linkonce.r.foo
62 # .data .gnu.linkonce.d.foo
63 # .bss .gnu.linkonce.b.foo
64 # .sdata .gnu.linkonce.s.foo
65 # .sbss .gnu.linkonce.sb.foo
66 # .sdata2 .gnu.linkonce.s2.foo
67 # .sbss2 .gnu.linkonce.sb2.foo
68 # .debug_info .gnu.linkonce.wi.foo
69 # .tdata .gnu.linkonce.td.foo
70 # .tbss .gnu.linkonce.tb.foo
72 # Each of these can also have corresponding .rel.* and .rela.* sections.
74 test -z "$ENTRY" && ENTRY=_start
75 test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
76 test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
77 if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
78 test -z "${ELFSIZE}" && ELFSIZE=32
79 test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8"
80 test "$LD_FLAG" = "N" && DATA_ADDR=.
81 test -n "$CREATE_SHLIB$CREATE_PIE" && test -n "$SHLIB_DATA_ADDR" && COMMONPAGESIZE=""
82 test -z "$CREATE_SHLIB$CREATE_PIE" && test -n "$DATA_ADDR" && COMMONPAGESIZE=""
83 test -n "$RELRO_NOW" && unset SEPARATE_GOTPLT
84 DATA_SEGMENT_ALIGN="ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))"
85 DATA_SEGMENT_RELRO_END=""
86 DATA_SEGMENT_RELRO_GOTPLT_END=""
88 if test -n "${COMMONPAGESIZE}"; then
89 DATA_SEGMENT_ALIGN="ALIGN (${SEGMENT_SIZE}) - ((${MAXPAGESIZE} - .) & (${MAXPAGESIZE} - 1)); . = DATA_SEGMENT_ALIGN (${MAXPAGESIZE}, ${COMMONPAGESIZE})"
90 DATA_SEGMENT_END=". = DATA_SEGMENT_END (.);"
91 if test -n "${SEPARATE_GOTPLT}"; then
92 DATA_SEGMENT_RELRO_GOTPLT_END=". = DATA_SEGMENT_RELRO_END (. + ${SEPARATE_GOTPLT});"
94 DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (.);"
97 INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
98 PLT=".plt ${RELOCATING-0} : { *(.plt) }"
99 if test -z "$GOT"; then
100 if test -z "$SEPARATE_GOTPLT"; then
101 GOT=".got ${RELOCATING-0} : { *(.got.plt) *(.got) }"
103 GOT=".got ${RELOCATING-0} : { *(.got) }"
104 GOTPLT=".got.plt ${RELOCATING-0} : { ${RELOCATING+${DATA_SEGMENT_RELRO_GOTPLT_END}} *(.got.plt) }"
107 DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }"
108 RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }"
109 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }"
110 STACKNOTE="/DISCARD/ : { *(.note.GNU-stack) }"
111 if test -z "${NO_SMALL_DATA}"; then
112 SBSS=".sbss ${RELOCATING-0} :
114 ${RELOCATING+PROVIDE (__sbss_start = .);}
115 ${RELOCATING+PROVIDE (___sbss_start = .);}
117 *(.sbss${RELOCATING+ .sbss.* .gnu.linkonce.sb.*})
119 ${RELOCATING+PROVIDE (__sbss_end = .);}
120 ${RELOCATING+PROVIDE (___sbss_end = .);}
122 SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2${RELOCATING+ .sbss2.* .gnu.linkonce.sb2.*}) }"
123 SDATA="/* We want the small data sections together, so single-instruction offsets
124 can access them all, and initialized data all before uninitialized, so
125 we can shorten the on-disk segment size. */
126 .sdata ${RELOCATING-0} :
128 ${RELOCATING+${SDATA_START_SYMBOLS}}
129 *(.sdata${RELOCATING+ .sdata.* .gnu.linkonce.s.*})
131 SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2${RELOCATING+ .sdata2.* .gnu.linkonce.s2.*}) }"
132 REL_SDATA=".rel.sdata ${RELOCATING-0} : { *(.rel.sdata${RELOCATING+ .rel.sdata.* .rel.gnu.linkonce.s.*}) }
133 .rela.sdata ${RELOCATING-0} : { *(.rela.sdata${RELOCATING+ .rela.sdata.* .rela.gnu.linkonce.s.*}) }"
134 REL_SBSS=".rel.sbss ${RELOCATING-0} : { *(.rel.sbss${RELOCATING+ .rel.sbss.* .rel.gnu.linkonce.sb.*}) }
135 .rela.sbss ${RELOCATING-0} : { *(.rela.sbss${RELOCATING+ .rela.sbss.* .rela.gnu.linkonce.sb.*}) }"
136 REL_SDATA2=".rel.sdata2 ${RELOCATING-0} : { *(.rel.sdata2${RELOCATING+ .rel.sdata2.* .rel.gnu.linkonce.s2.*}) }
137 .rela.sdata2 ${RELOCATING-0} : { *(.rela.sdata2${RELOCATING+ .rela.sdata2.* .rela.gnu.linkonce.s2.*}) }"
138 REL_SBSS2=".rel.sbss2 ${RELOCATING-0} : { *(.rel.sbss2${RELOCATING+ .rel.sbss2.* .rel.gnu.linkonce.sb2.*}) }
139 .rela.sbss2 ${RELOCATING-0} : { *(.rela.sbss2${RELOCATING+ .rela.sbss2.* .rela.gnu.linkonce.sb2.*}) }"
143 test -n "$SEPARATE_GOTPLT" && SEPARATE_GOTPLT=" "
144 CTOR=".ctors ${CONSTRUCTING-0} :
146 ${CONSTRUCTING+${CTOR_START}}
147 /* gcc uses crtbegin.o to find the start of
148 the constructors, so we make sure it is
149 first. Because this is a wildcard, it
150 doesn't matter if the user does not
151 actually link against crtbegin.o; the
152 linker won't look for a file to match a
153 wildcard. The wildcard also means that it
154 doesn't matter which directory crtbegin.o
157 KEEP (*crtbegin*.o(.ctors))
159 /* We don't want to include the .ctor section from
160 from the crtend.o file until after the sorted ctors.
161 The .ctor section from the crtend file contains the
162 end of ctors marker and it must be last */
164 KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .ctors))
165 KEEP (*(SORT(.ctors.*)))
167 ${CONSTRUCTING+${CTOR_END}}
169 DTOR=".dtors ${CONSTRUCTING-0} :
171 ${CONSTRUCTING+${DTOR_START}}
172 KEEP (*crtbegin*.o(.dtors))
173 KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .dtors))
174 KEEP (*(SORT(.dtors.*)))
176 ${CONSTRUCTING+${DTOR_END}}
178 STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} :
180 ${RELOCATING+_stack = .;}
184 # if this is for an embedded system, don't add SIZEOF_HEADERS.
185 if [ -z "$EMBEDDED" ]; then
186 test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS"
188 test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}"
192 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
193 "${LITTLE_OUTPUT_FORMAT}")
194 OUTPUT_ARCH(${OUTPUT_ARCH})
197 ${RELOCATING+${LIB_SEARCH_DIRS}}
198 ${RELOCATING+/* Do we need any of these for elf?
199 __DYNAMIC = 0; ${STACKZERO+${STACKZERO}} ${SHLIB_PATH+${SHLIB_PATH}} */}
200 ${RELOCATING+${EXECUTABLE_SYMBOLS}}
201 ${RELOCATING+${INPUT_FILES}}
202 ${RELOCATING- /* For some reason, the Solaris linker makes bad executables
203 if gld -r is used and the intermediate file has sections starting
204 at non-zero addresses. Could be a Solaris ld bug, could be a GNU ld
205 bug. But for now assigning the zero vmas works. */}
209 /* Read-only sections, merged into text segment: */
210 ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+PROVIDE (__executable_start = ${TEXT_START_ADDR}); . = ${TEXT_BASE_ADDRESS};}}}
211 ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
212 ${CREATE_PIE+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
213 ${CREATE_SHLIB-${INTERP}}
214 ${INITIAL_READONLY_SECTIONS}
215 ${TEXT_DYNAMIC+${DYNAMIC}}
216 .hash ${RELOCATING-0} : { *(.hash) }
217 .dynsym ${RELOCATING-0} : { *(.dynsym) }
218 .dynstr ${RELOCATING-0} : { *(.dynstr) }
219 .gnu.version ${RELOCATING-0} : { *(.gnu.version) }
220 .gnu.version_d ${RELOCATING-0}: { *(.gnu.version_d) }
221 .gnu.version_r ${RELOCATING-0}: { *(.gnu.version_r) }
224 if [ "x$COMBRELOC" = x ]; then
227 COMBRELOCCAT="cat > $COMBRELOC"
229 eval $COMBRELOCCAT <<EOF
230 .rel.init ${RELOCATING-0} : { *(.rel.init) }
231 .rela.init ${RELOCATING-0} : { *(.rela.init) }
232 .rel.text ${RELOCATING-0} : { *(.rel.text${RELOCATING+ .rel.text.* .rel.gnu.linkonce.t.*}) }
233 .rela.text ${RELOCATING-0} : { *(.rela.text${RELOCATING+ .rela.text.* .rela.gnu.linkonce.t.*}) }
234 .rel.fini ${RELOCATING-0} : { *(.rel.fini) }
235 .rela.fini ${RELOCATING-0} : { *(.rela.fini) }
236 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata${RELOCATING+ .rel.rodata.* .rel.gnu.linkonce.r.*}) }
237 .rela.rodata ${RELOCATING-0} : { *(.rela.rodata${RELOCATING+ .rela.rodata.* .rela.gnu.linkonce.r.*}) }
238 ${OTHER_READONLY_RELOC_SECTIONS}
239 .rel.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
240 .rela.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
241 .rel.data ${RELOCATING-0} : { *(.rel.data${RELOCATING+ .rel.data.* .rel.gnu.linkonce.d.*}) }
242 .rela.data ${RELOCATING-0} : { *(.rela.data${RELOCATING+ .rela.data.* .rela.gnu.linkonce.d.*}) }
243 .rel.tdata ${RELOCATING-0} : { *(.rel.tdata${RELOCATING+ .rel.tdata.* .rel.gnu.linkonce.td.*}) }
244 .rela.tdata ${RELOCATING-0} : { *(.rela.tdata${RELOCATING+ .rela.tdata.* .rela.gnu.linkonce.td.*}) }
245 .rel.tbss ${RELOCATING-0} : { *(.rel.tbss${RELOCATING+ .rel.tbss.* .rel.gnu.linkonce.tb.*}) }
246 .rela.tbss ${RELOCATING-0} : { *(.rela.tbss${RELOCATING+ .rela.tbss.* .rela.gnu.linkonce.tb.*}) }
247 .rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
248 .rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
249 .rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
250 .rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
251 .rel.got ${RELOCATING-0} : { *(.rel.got) }
252 .rela.got ${RELOCATING-0} : { *(.rela.got) }
253 ${OTHER_GOT_RELOC_SECTIONS}
258 .rel.bss ${RELOCATING-0} : { *(.rel.bss${RELOCATING+ .rel.bss.* .rel.gnu.linkonce.b.*}) }
259 .rela.bss ${RELOCATING-0} : { *(.rela.bss${RELOCATING+ .rela.bss.* .rela.gnu.linkonce.b.*}) }
261 if [ -n "$COMBRELOC" ]; then
263 .rel.dyn ${RELOCATING-0} :
266 sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rela\./d;s/^.*: { *\(.*\)}$/ \1/' $COMBRELOC
269 .rela.dyn ${RELOCATING-0} :
272 sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rel\./d;s/^.*: { *\(.*\)}/ \1/' $COMBRELOC
278 .rel.plt ${RELOCATING-0} : { *(.rel.plt) }
279 .rela.plt ${RELOCATING-0} : { *(.rela.plt) }
280 ${OTHER_PLT_RELOC_SECTIONS}
282 .init ${RELOCATING-0} :
284 ${RELOCATING+${INIT_START}}
286 ${RELOCATING+${INIT_END}}
289 ${DATA_PLT-${BSS_PLT-${PLT}}}
290 .text ${RELOCATING-0} :
292 ${RELOCATING+${TEXT_START_SYMBOLS}}
293 *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
294 KEEP (*(.text.*personality*))
295 /* .gnu.warning sections are handled specially by elf32.em. */
297 ${RELOCATING+${OTHER_TEXT_SECTIONS}}
299 .fini ${RELOCATING-0} :
301 ${RELOCATING+${FINI_START}}
303 ${RELOCATING+${FINI_END}}
305 ${RELOCATING+PROVIDE (__etext = .);}
306 ${RELOCATING+PROVIDE (_etext = .);}
307 ${RELOCATING+PROVIDE (etext = .);}
308 ${WRITABLE_RODATA-${RODATA}}
309 .rodata1 ${RELOCATING-0} : { *(.rodata1) }
310 ${CREATE_SHLIB-${SDATA2}}
311 ${CREATE_SHLIB-${SBSS2}}
312 ${OTHER_READONLY_SECTIONS}
313 .eh_frame_hdr : { *(.eh_frame_hdr) }
314 .eh_frame ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) }
315 .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { *(.gcc_except_table) }
317 /* Adjust the address for the data segment. We want to adjust up to
318 the same address within the page on the next page up. */
319 ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}}
320 ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
321 ${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
323 /* Exception handling */
324 .eh_frame ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
325 .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { *(.gcc_except_table) }
327 /* Thread Local Storage sections */
328 .tdata ${RELOCATING-0} : { *(.tdata${RELOCATING+ .tdata.* .gnu.linkonce.td.*}) }
329 .tbss ${RELOCATING-0} : { *(.tbss${RELOCATING+ .tbss.* .gnu.linkonce.tb.*})${RELOCATING+ *(.tcommon)} }
331 /* Ensure the __preinit_array_start label is properly aligned. We
332 could instead move the label definition inside the section, but
333 the linker would then create the section even if it turns out to
334 be empty, which isn't pretty. */
335 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
336 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_start = .);}}
337 .preinit_array ${RELOCATING-0} : { *(.preinit_array) }
338 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_end = .);}}
340 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_start = .);}}
341 .init_array ${RELOCATING-0} : { *(.init_array) }
342 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_end = .);}}
344 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__fini_array_start = .);}}
345 .fini_array ${RELOCATING-0} : { *(.fini_array) }
346 ${RELOCATING+${CREATE_SHLIB-PROVIDE (__fini_array_end = .);}}
348 ${RELOCATING+${CTOR}}
349 ${RELOCATING+${DTOR}}
350 .jcr ${RELOCATING-0} : { KEEP (*(.jcr)) }
352 ${RELOCATING+${DATARELRO}}
353 ${OTHER_RELRO_SECTIONS}
354 ${TEXT_DYNAMIC-${DYNAMIC}}
355 ${NO_SMALL_DATA+${RELRO_NOW+${GOT}}}
356 ${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT+${GOT}}}}
357 ${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT+${GOTPLT}}}}
358 ${RELOCATING+${DATA_SEGMENT_RELRO_END}}
359 ${NO_SMALL_DATA+${RELRO_NOW-${SEPARATE_GOTPLT-${GOT}}}}
363 .data ${RELOCATING-0} :
365 ${RELOCATING+${DATA_START_SYMBOLS}}
366 *(.data${RELOCATING+ .data.* .gnu.linkonce.d.*})
367 KEEP (*(.gnu.linkonce.d.*personality*))
368 ${CONSTRUCTING+SORT(CONSTRUCTORS)}
370 .data1 ${RELOCATING-0} : { *(.data1) }
371 ${WRITABLE_RODATA+${RODATA}}
372 ${OTHER_READWRITE_SECTIONS}
373 ${RELOCATING+${OTHER_GOT_SYMBOLS}}
374 ${NO_SMALL_DATA-${GOT}}
375 ${OTHER_GOT_SECTIONS}
376 ${CREATE_SHLIB+${SDATA2}}
377 ${CREATE_SHLIB+${SBSS2}}
379 ${OTHER_SDATA_SECTIONS}
380 ${RELOCATING+_edata = .;}
381 ${RELOCATING+PROVIDE (edata = .);}
382 ${RELOCATING+__bss_start = .;}
383 ${RELOCATING+${OTHER_BSS_SYMBOLS}}
386 .bss ${RELOCATING-0} :
389 *(.bss${RELOCATING+ .bss.* .gnu.linkonce.b.*})
391 /* Align here to ensure that the .bss section occupies space up to
392 _end. Align after .bss to ensure correct alignment even if the
393 .bss section disappears because there are no input sections. */
394 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
396 ${OTHER_BSS_SECTIONS}
397 ${RELOCATING+. = ALIGN(${ALIGNMENT});}
398 ${RELOCATING+_end = .;}
399 ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
400 ${RELOCATING+PROVIDE (end = .);}
401 ${RELOCATING+${DATA_SEGMENT_END}}
403 /* Stabs debugging sections. */
404 .stab 0 : { *(.stab) }
405 .stabstr 0 : { *(.stabstr) }
406 .stab.excl 0 : { *(.stab.excl) }
407 .stab.exclstr 0 : { *(.stab.exclstr) }
408 .stab.index 0 : { *(.stab.index) }
409 .stab.indexstr 0 : { *(.stab.indexstr) }
411 .comment 0 : { *(.comment) }
413 /* DWARF debug sections.
414 Symbols in the DWARF debugging sections are relative to the beginning
415 of the section so we begin them at 0. */
418 .debug 0 : { *(.debug) }
419 .line 0 : { *(.line) }
421 /* GNU DWARF 1 extensions */
422 .debug_srcinfo 0 : { *(.debug_srcinfo) }
423 .debug_sfnames 0 : { *(.debug_sfnames) }
425 /* DWARF 1.1 and DWARF 2 */
426 .debug_aranges 0 : { *(.debug_aranges) }
427 .debug_pubnames 0 : { *(.debug_pubnames) }
430 .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
431 .debug_abbrev 0 : { *(.debug_abbrev) }
432 .debug_line 0 : { *(.debug_line) }
433 .debug_frame 0 : { *(.debug_frame) }
434 .debug_str 0 : { *(.debug_str) }
435 .debug_loc 0 : { *(.debug_loc) }
436 .debug_macinfo 0 : { *(.debug_macinfo) }
438 /* SGI/MIPS DWARF 2 extensions */
439 .debug_weaknames 0 : { *(.debug_weaknames) }
440 .debug_funcnames 0 : { *(.debug_funcnames) }
441 .debug_typenames 0 : { *(.debug_typenames) }
442 .debug_varnames 0 : { *(.debug_varnames) }
444 ${STACK_ADDR+${STACK}}
446 ${RELOCATING+${OTHER_END_SYMBOLS}}
447 ${RELOCATING+${STACKNOTE}}