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