1 diff --git a/bfd/config.bfd b/bfd/config.bfd
2 index 5324d39a21cb..3f0119ab2649 100644
6 targ_selvecs="i386linux_vec i386pei_vec"
7 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf32_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
9 + i[3-7]86-*-barrelfish*)
10 + targ_defvec=bfd_elf32_i386_vec
11 + targ_selvecs=bfd_elf32_i386_vec
14 targ_defvec=bfd_elf32_i386_nacl_vec
15 targ_selvecs="bfd_elf32_i386_vec"
17 targ_selvecs="bfd_elf64_x86_64_vec bfd_elf32_i386_vec bfd_elf32_x86_64_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
20 + x86_64-*-barrelfish*)
21 + targ_defvec=bfd_elf64_x86_64_vec
22 + targ_selvecs=bfd_elf64_x86_64_vec
26 + targ_defvec=bfd_elf64_k1om_vec
27 + targ_selvecs="bfd_elf64_x86_64_vec"
29 k1om-*-mingw* | k1om-*-pe | k1om-*-pep)
30 targ_defvec=bfd_elf64_k1om_vec
31 targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec i386pe_vec i386pei_vec bfd_elf32_i386_vec"
32 diff --git a/config.sub b/config.sub
33 index 61cb4bc22db8..bc3ec8c48906 100755
37 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
38 | -sym* | -kopensolaris* \
39 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
41 + | -aos* | -aros* | -barrelfish*\
42 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
43 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
44 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
45 diff --git a/configure b/configure
46 index ee45e1b00f90..5bb841e5899d 100755
52 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
53 - | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
54 + | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* | *-*-barrelfish \
55 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
56 | *-*-solaris2* | *-*-nto*)
59 diff --git a/gas/configure.tgt b/gas/configure.tgt
60 index 77c1d9b59246..5b32ae8f8a0c 100644
61 --- a/gas/configure.tgt
62 +++ b/gas/configure.tgt
64 i386-*-openbsd[0-2].* | \
65 i386-*-openbsd3.[0-2]) fmt=aout em=nbsd ;;
66 i386-*-openbsd*) fmt=elf em=nbsd ;;
67 + i386-*-barrelfish*) fmt=elf ;;
68 i386-*-linux*aout*) fmt=aout em=linux ;;
69 i386-*-linux*oldld) fmt=aout em=linux ;;
70 i386-*-linux*coff*) fmt=coff em=linux ;;
71 diff --git a/ld/Makefile.am b/ld/Makefile.am
72 index b2b2a6ebe362..c01570b158ba 100644
87 + ebarrelfish_k1om.c \
91 @@ -1189,6 +1191,15 @@
92 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
93 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
94 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
95 +ebarrelfish_i386.c: $(srcdir)/emulparams/barrelfish_i386.sh \
96 + $(ELF_DEPS) $(srcdir)/scripttempl/elf-barrelfish.sc ${GEN_DEPENDS}
97 + ${GENSCRIPTS} barrelfish_i386 "$(tdir_barrelfish_i386)"
98 +ebarrelfish_x86_64.c: $(srcdir)/emulparams/barrelfish_x86_64.sh \
99 + $(ELF_DEPS) $(srcdir)/scripttempl/elf-barrelfish.sc ${GEN_DEPENDS}
100 + ${GENSCRIPTS} barrelfish_x86_64 "$(tdir_barrelfish_x86_64)"
101 +ebarrelfish_k1om.c: $(srcdir)/emulparams/barrelfish_k1om.sh \
102 + $(ELF_DEPS) $(srcdir)/scripttempl/elf-barrelfish.sc ${GEN_DEPENDS}
103 + ${GENSCRIPTS} barrelfish_k1om "$(tdir_barrelfish_k1om)"
104 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
105 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
106 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
107 diff --git a/ld/Makefile.in b/ld/Makefile.in
108 index b95a3d103de4..d41557b3334c 100644
115 + ebarrelfish_i386.c \
123 + ebarrelfish_k1om.c \
124 + ebarrelfish_x86_64.c \
128 @@ -3473,6 +3476,15 @@
129 $(srcdir)/emulparams/elf_k1om.sh \
130 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
131 ${GENSCRIPTS} elf_k1om_fbsd "$(tdir_elf_k1om_fbsd)"
132 +ebarrelfish_i386.c: $(srcdir)/emulparams/barrelfish_i386.sh \
133 + $(ELF_DEPS) $(srcdir)/scripttempl/elf-barrelfish.sc ${GEN_DEPENDS}
134 + ${GENSCRIPTS} barrelfish_i386 "$(tdir_barrelfish_i386)"
135 +ebarrelfish_x86_64.c: $(srcdir)/emulparams/barrelfish_x86_64.sh \
136 + $(ELF_DEPS) $(srcdir)/scripttempl/elf-barrelfish.sc ${GEN_DEPENDS}
137 + ${GENSCRIPTS} barrelfish_x86_64 "$(tdir_barrelfish_x86_64)"
138 +ebarrelfish_k1om.c: $(srcdir)/emulparams/barrelfish_k1om.sh \
139 + $(ELF_DEPS) $(srcdir)/scripttempl/elf-barrelfish.sc ${GEN_DEPENDS}
140 + ${GENSCRIPTS} barrelfish_k1om "$(tdir_barrelfish_k1om)"
141 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
142 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
143 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
144 diff --git a/ld/configure.tgt b/ld/configure.tgt
145 index c50730b9c514..27702cbedc3a 100644
146 --- a/ld/configure.tgt
147 +++ b/ld/configure.tgt
149 targ_extra_emuls=elf_i386
150 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` ;;
151 i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
152 +i[3-7]86-*-barrelfish*) targ_emul=barrelfish_i386 ;;
153 i[3-7]86-*-linux-*) targ_emul=elf_i386
154 targ_extra_emuls=i386linux
155 targ64_extra_emuls="elf_x86_64 elf32_x86_64 elf_l1om elf_k1om"
157 targ_extra_libpath="elf_i386 elf32_x86_64 elf_x86_64"
158 tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
159 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
160 +k1om-*-barrelfish*) targ_emul=barrelfish_k1om
161 + targ_extra_emuls="elf_k1om barrelfish_x86_64 elf_x86_64"
162 + targ_extra_libpath="elf_k1om barrelfish_x86_64 elf_x86_64" ;;
163 +x86_64-*-barrelfish*) targ_emul=barrelfish_x86_64 ;;
164 x86_64-*-linux-*) targ_emul=elf_x86_64
165 targ_extra_emuls="elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om"
166 targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
167 diff --git a/ld/emulparams/barrelfish_i386.sh b/ld/emulparams/barrelfish_i386.sh
169 index 000000000000..032dd5ae18a3
171 +++ b/ld/emulparams/barrelfish_i386.sh
173 +. ${srcdir}/emulparams/plt_unwind.sh
174 +SCRIPT_NAME=elf-barrelfish
175 +OUTPUT_FORMAT="elf32-i386"
177 +TEXT_START_ADDR=0x400000
179 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
183 +GENERATE_SHLIB_SCRIPT=no
184 +GENERATE_PIE_SCRIPT=yes
186 +SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 12 ? 12 : 0"
187 diff --git a/ld/emulparams/barrelfish_x86_64.sh b/ld/emulparams/barrelfish_x86_64.sh
189 index 000000000000..bf4dafdd6b2b
191 +++ b/ld/emulparams/barrelfish_x86_64.sh
193 +. ${srcdir}/emulparams/plt_unwind.sh
194 +SCRIPT_NAME=elf-barrelfish
196 +OUTPUT_FORMAT="elf64-x86-64"
198 +TEXT_START_ADDR=0x400000
200 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
204 +GENERATE_SHLIB_SCRIPT=no
205 +GENERATE_PIE_SCRIPT=yes
208 +SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
209 diff --git a/ld/emulparams/barrelfish_k1om.sh b/ld/emulparams/barrelfish_k1om.sh
211 index 000000000000..bf4dafdd6b2b
213 +++ b/ld/emulparams/barrelfish_k1om.sh
215 +. ${srcdir}/emulparams/plt_unwind.sh
216 +SCRIPT_NAME=elf-barrelfish
218 +OUTPUT_FORMAT="elf64-k1om"
220 +TEXT_START_ADDR=0x400000
222 +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
227 +GENERATE_SHLIB_SCRIPT=yes
228 +GENERATE_PIE_SCRIPT=yes
231 +SEPARATE_GOTPLT=24 #"SIZEOF (.got.plt) >= 24 ? 24 : 0"
232 +LIBPATH_SUFFIX=64 ;;
233 diff --git a/ld/scripttempl/elf-barrelfish.sc b/ld/scripttempl/elf-barrelfish.sc
235 index 000000000000..51a655eed65c
237 +++ b/ld/scripttempl/elf-barrelfish.sc
240 +# Unusual variables checked by this code:
241 +# NOP - four byte opcode for no-op (defaults to none)
242 +# NO_SMALL_DATA - no .sbss/.sbss2/.sdata/.sdata2 sections if not
244 +# SMALL_DATA_CTOR - .ctors contains small data.
245 +# SMALL_DATA_DTOR - .dtors contains small data.
246 +# DATA_ADDR - if end-of-text-plus-one-page isn't right for data start
247 +# INITIAL_READONLY_SECTIONS - at start of text segment
248 +# OTHER_READONLY_SECTIONS - other than .text .init .rodata ...
249 +# (e.g., .PARISC.milli)
250 +# OTHER_TEXT_SECTIONS - these get put in .text when relocating
251 +# OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ...
252 +# (e.g., .PARISC.global)
253 +# OTHER_RELRO_SECTIONS - other than .data.rel.ro ...
254 +# (e.g. PPC32 .fixup, .got[12])
255 +# OTHER_BSS_SECTIONS - other than .bss .sbss ...
256 +# ATTRS_SECTIONS - at the end
257 +# OTHER_SECTIONS - at the end
258 +# EXECUTABLE_SYMBOLS - symbols that must be defined for an
259 +# executable (e.g., _DYNAMIC_LINK)
260 +# TEXT_START_ADDR - the first byte of the text segment, after any
262 +# TEXT_BASE_ADDRESS - the first byte of the text segment.
263 +# TEXT_START_SYMBOLS - symbols that appear at the start of the
265 +# DATA_START_SYMBOLS - symbols that appear at the start of the
267 +# DATA_END_SYMBOLS - symbols that appear at the end of the
268 +# writeable data sections.
269 +# OTHER_GOT_SYMBOLS - symbols defined just before .got.
270 +# OTHER_GOT_SECTIONS - sections just after .got.
271 +# OTHER_SDATA_SECTIONS - sections just after .sdata.
272 +# OTHER_BSS_SYMBOLS - symbols that appear at the start of the
273 +# .bss section besides __bss_start.
274 +# DATA_PLT - .plt should be in data segment, not text segment.
275 +# PLT_BEFORE_GOT - .plt just before .got when .plt is in data segement.
276 +# BSS_PLT - .plt should be in bss segment
277 +# NO_REL_RELOCS - Don't include .rel.* sections in script
278 +# NO_RELA_RELOCS - Don't include .rela.* sections in script
279 +# NON_ALLOC_DYN - Place dynamic sections after data segment.
280 +# TEXT_DYNAMIC - .dynamic in text segment, not data segment.
281 +# EMBEDDED - whether this is for an embedded system.
282 +# SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set
283 +# start address of shared library.
284 +# INPUT_FILES - INPUT command of files to always include
285 +# WRITABLE_RODATA - if set, the .rodata section should be writable
286 +# INIT_START, INIT_END - statements just before and just after
287 +# combination of .init sections.
288 +# FINI_START, FINI_END - statements just before and just after
289 +# combination of .fini sections.
290 +# STACK_ADDR - start of a .stack section.
291 +# OTHER_SYMBOLS - symbols to place right at the end of the script.
292 +# ETEXT_NAME - name of a symbol for the end of the text section,
294 +# SEPARATE_CODE - if set, .text and similar sections containing
295 +# actual machine instructions must be in wholly disjoint
296 +# pages from any other data, including headers
297 +# SEPARATE_GOTPLT - if set, .got.plt should be separate output section,
298 +# so that .got can be in the RELRO area. It should be set to
299 +# the number of bytes in the beginning of .got.plt which can be
300 +# in the RELRO area as well.
301 +# USER_LABEL_PREFIX - prefix to add to user-visible symbols.
302 +# RODATA_NAME, SDATA_NAME, SBSS_NAME, BSS_NAME - base parts of names
303 +# for standard sections, without initial "." or suffixes.
305 +# When adding sections, do note that the names of some sections are used
306 +# when specifying the start address of the next.
309 +# Many sections come in three flavours. There is the 'real' section,
310 +# like ".data". Then there are the per-procedure or per-variable
311 +# sections, generated by -ffunction-sections and -fdata-sections in GCC,
312 +# and useful for --gc-sections, which for a variable "foo" might be
313 +# ".data.foo". Then there are the linkonce sections, for which the linker
314 +# eliminates duplicates, which are named like ".gnu.linkonce.d.foo".
315 +# The exact correspondences are:
317 +# Section Linkonce section
318 +# .text .gnu.linkonce.t.foo
319 +# .rodata .gnu.linkonce.r.foo
320 +# .data .gnu.linkonce.d.foo
321 +# .bss .gnu.linkonce.b.foo
322 +# .sdata .gnu.linkonce.s.foo
323 +# .sbss .gnu.linkonce.sb.foo
324 +# .sdata2 .gnu.linkonce.s2.foo
325 +# .sbss2 .gnu.linkonce.sb2.foo
326 +# .debug_info .gnu.linkonce.wi.foo
327 +# .tdata .gnu.linkonce.td.foo
328 +# .tbss .gnu.linkonce.tb.foo
329 +# .lrodata .gnu.linkonce.lr.foo
330 +# .ldata .gnu.linkonce.l.foo
331 +# .lbss .gnu.linkonce.lb.foo
333 +# Each of these can also have corresponding .rel.* and .rela.* sections.
335 +if test -n "$NOP"; then
341 +test -z "$RODATA_NAME" && RODATA_NAME=rodata
342 +test -z "$SDATA_NAME" && SDATA_NAME=sdata
343 +test -z "$SBSS_NAME" && SBSS_NAME=sbss
344 +test -z "$BSS_NAME" && BSS_NAME=bss
345 +test -z "$ENTRY" && ENTRY=${USER_LABEL_PREFIX}_start
346 +test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
347 +test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
348 +if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
349 +test -z "${ELFSIZE}" && ELFSIZE=32
350 +test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8"
351 +test "$LD_FLAG" = "N" && DATA_ADDR=.
352 +test -z "${ETEXT_NAME}" && ETEXT_NAME=${USER_LABEL_PREFIX}etext
353 +test -n "$CREATE_SHLIB$CREATE_PIE" && test -n "$SHLIB_DATA_ADDR" && COMMONPAGESIZE=""
354 +test -z "$CREATE_SHLIB$CREATE_PIE" && test -n "$DATA_ADDR" && COMMONPAGESIZE=""
355 +test -n "$RELRO_NOW" && unset SEPARATE_GOTPLT
356 +test -z "$ATTRS_SECTIONS" && ATTRS_SECTIONS=".gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }"
357 +DATA_SEGMENT_ALIGN="ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))"
358 +DATA_SEGMENT_RELRO_END=""
360 +if test -n "${COMMONPAGESIZE}"; then
361 + DATA_SEGMENT_ALIGN="ALIGN (${SEGMENT_SIZE}) - ((${MAXPAGESIZE} - .) & (${MAXPAGESIZE} - 1)); . = DATA_SEGMENT_ALIGN (${MAXPAGESIZE}, ${COMMONPAGESIZE})"
362 + DATA_SEGMENT_END=". = DATA_SEGMENT_END (.);"
363 + DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);"
365 +if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}"; then
366 + INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp) }"
368 +if test -z "$PLT"; then
369 + IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }"
370 + PLT=".plt ${RELOCATING-0} : { *(.plt)${IREL_IN_PLT+ *(.iplt)} }
371 + ${IREL_IN_PLT-$IPLT}"
373 +test -n "${DATA_PLT-${BSS_PLT-text}}" && TEXT_PLT=yes
374 +if test -z "$GOT"; then
375 + if test -z "$SEPARATE_GOTPLT"; then
376 + GOT=".got ${RELOCATING-0} : { *(.got.plt) *(.igot.plt) *(.got) *(.igot) }"
378 + GOT=".got ${RELOCATING-0} : { *(.got) *(.igot) }"
379 + GOTPLT=".got.plt ${RELOCATING-0} : { *(.got.plt) *(.igot.plt) }"
382 +REL_IFUNC=".rel.ifunc ${RELOCATING-0} : { *(.rel.ifunc) }"
383 +RELA_IFUNC=".rela.ifunc ${RELOCATING-0} : { *(.rela.ifunc) }"
384 +REL_IPLT=".rel.iplt ${RELOCATING-0} :
386 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rel_iplt_start = .);}}
388 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rel_iplt_end = .);}}
390 +RELA_IPLT=".rela.iplt ${RELOCATING-0} :
392 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rela_iplt_start = .);}}
394 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rela_iplt_end = .);}}
396 +DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }"
397 +RODATA=".${RODATA_NAME} ${RELOCATING-0} : { *(.${RODATA_NAME}${RELOCATING+ .${RODATA_NAME}.* .gnu.linkonce.r.*}) }"
398 +DATARELRO=".data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro .data.rel.ro.* .gnu.linkonce.d.rel.ro.*) }"
399 +DISCARDED="/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }"
400 +if test -z "${NO_SMALL_DATA}"; then
401 + SBSS=".${SBSS_NAME} ${RELOCATING-0} :
403 + ${RELOCATING+${SBSS_START_SYMBOLS}}
404 + ${CREATE_SHLIB+*(.${SBSS_NAME}2 .${SBSS_NAME}2.* .gnu.linkonce.sb2.*)}
405 + *(.dyn${SBSS_NAME})
406 + *(.${SBSS_NAME}${RELOCATING+ .${SBSS_NAME}.* .gnu.linkonce.sb.*})
408 + ${RELOCATING+${SBSS_END_SYMBOLS}}
410 + SBSS2=".${SBSS_NAME}2 ${RELOCATING-0} : { *(.${SBSS_NAME}2${RELOCATING+ .${SBSS_NAME}2.* .gnu.linkonce.sb2.*}) }"
411 + SDATA="/* We want the small data sections together, so single-instruction offsets
412 + can access them all, and initialized data all before uninitialized, so
413 + we can shorten the on-disk segment size. */
414 + .${SDATA_NAME} ${RELOCATING-0} :
416 + ${RELOCATING+${SDATA_START_SYMBOLS}}
417 + ${CREATE_SHLIB+*(.${SDATA_NAME}2 .${SDATA_NAME}2.* .gnu.linkonce.s2.*)}
418 + *(.${SDATA_NAME}${RELOCATING+ .${SDATA_NAME}.* .gnu.linkonce.s.*})
420 + SDATA2=".${SDATA_NAME}2 ${RELOCATING-0} :
422 + ${RELOCATING+${SDATA2_START_SYMBOLS}}
423 + *(.${SDATA_NAME}2${RELOCATING+ .${SDATA_NAME}2.* .gnu.linkonce.s2.*})
425 + REL_SDATA=".rel.${SDATA_NAME} ${RELOCATING-0} : { *(.rel.${SDATA_NAME}${RELOCATING+ .rel.${SDATA_NAME}.* .rel.gnu.linkonce.s.*}) }
426 + .rela.${SDATA_NAME} ${RELOCATING-0} : { *(.rela.${SDATA_NAME}${RELOCATING+ .rela.${SDATA_NAME}.* .rela.gnu.linkonce.s.*}) }"
427 + REL_SBSS=".rel.${SBSS_NAME} ${RELOCATING-0} : { *(.rel.${SBSS_NAME}${RELOCATING+ .rel.${SBSS_NAME}.* .rel.gnu.linkonce.sb.*}) }
428 + .rela.${SBSS_NAME} ${RELOCATING-0} : { *(.rela.${SBSS_NAME}${RELOCATING+ .rela.${SBSS_NAME}.* .rela.gnu.linkonce.sb.*}) }"
429 + REL_SDATA2=".rel.${SDATA_NAME}2 ${RELOCATING-0} : { *(.rel.${SDATA_NAME}2${RELOCATING+ .rel.${SDATA_NAME}2.* .rel.gnu.linkonce.s2.*}) }
430 + .rela.${SDATA_NAME}2 ${RELOCATING-0} : { *(.rela.${SDATA_NAME}2${RELOCATING+ .rela.${SDATA_NAME}2.* .rela.gnu.linkonce.s2.*}) }"
431 + REL_SBSS2=".rel.${SBSS_NAME}2 ${RELOCATING-0} : { *(.rel.${SBSS_NAME}2${RELOCATING+ .rel.${SBSS_NAME}2.* .rel.gnu.linkonce.sb2.*}) }
432 + .rela.${SBSS_NAME}2 ${RELOCATING-0} : { *(.rela.${SBSS_NAME}2${RELOCATING+ .rela.${SBSS_NAME}2.* .rela.gnu.linkonce.sb2.*}) }"
436 +if test -z "${DATA_GOT}"; then
437 + if test -n "${NO_SMALL_DATA}"; then
441 +if test -z "${SDATA_GOT}"; then
442 + if test -z "${NO_SMALL_DATA}"; then
446 +test -n "$SEPARATE_GOTPLT" && SEPARATE_GOTPLT=" "
447 +test "${LARGE_SECTIONS}" = "yes" && REL_LARGE="
448 + .rel.ldata ${RELOCATING-0} : { *(.rel.ldata${RELOCATING+ .rel.ldata.* .rel.gnu.linkonce.l.*}) }
449 + .rela.ldata ${RELOCATING-0} : { *(.rela.ldata${RELOCATING+ .rela.ldata.* .rela.gnu.linkonce.l.*}) }
450 + .rel.lbss ${RELOCATING-0} : { *(.rel.lbss${RELOCATING+ .rel.lbss.* .rel.gnu.linkonce.lb.*}) }
451 + .rela.lbss ${RELOCATING-0} : { *(.rela.lbss${RELOCATING+ .rela.lbss.* .rela.gnu.linkonce.lb.*}) }
452 + .rel.lrodata ${RELOCATING-0} : { *(.rel.lrodata${RELOCATING+ .rel.lrodata.* .rel.gnu.linkonce.lr.*}) }
453 + .rela.lrodata ${RELOCATING-0} : { *(.rela.lrodata${RELOCATING+ .rela.lrodata.* .rela.gnu.linkonce.lr.*}) }"
454 +test "${LARGE_SECTIONS}" = "yes" && OTHER_BSS_SECTIONS="
455 + ${OTHER_BSS_SECTIONS}
456 + .lbss ${RELOCATING-0} :
459 + *(.lbss${RELOCATING+ .lbss.* .gnu.linkonce.lb.*})
462 +test "${LARGE_SECTIONS}" = "yes" && LARGE_SECTIONS="
463 + .lrodata ${RELOCATING-0} ${RELOCATING+ALIGN(${MAXPAGESIZE}) + (. & (${MAXPAGESIZE} - 1))} :
465 + *(.lrodata${RELOCATING+ .lrodata.* .gnu.linkonce.lr.*})
467 + .ldata ${RELOCATING-0} ${RELOCATING+ALIGN(${MAXPAGESIZE}) + (. & (${MAXPAGESIZE} - 1))} :
469 + *(.ldata${RELOCATING+ .ldata.* .gnu.linkonce.l.*})
470 + ${RELOCATING+. = ALIGN(. != 0 ? ${ALIGNMENT} : 1);}
472 +if test "${ENABLE_INITFINI_ARRAY}" = "yes"; then
473 + SORT_INIT_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))"
474 + SORT_FINI_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))"
475 + CTORS_IN_INIT_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))"
476 + DTORS_IN_FINI_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))"
478 + SORT_INIT_ARRAY="KEEP (*(SORT(.init_array.*)))"
479 + SORT_FINI_ARRAY="KEEP (*(SORT(.fini_array.*)))"
480 + CTORS_IN_INIT_ARRAY=
481 + DTORS_IN_FINI_ARRAY=
483 +INIT_ARRAY=".init_array ${RELOCATING-0} :
485 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__init_array_start = .);}}
487 + KEEP (*(.init_array))
488 + ${CTORS_IN_INIT_ARRAY}
489 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__init_array_end = .);}}
491 +FINI_ARRAY=".fini_array ${RELOCATING-0} :
493 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__fini_array_start = .);}}
495 + KEEP (*(.fini_array))
496 + ${DTORS_IN_FINI_ARRAY}
497 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__fini_array_end = .);}}
499 +CTOR=".ctors ${CONSTRUCTING-0} :
501 + ${CONSTRUCTING+${CTOR_START}}
502 + /* gcc uses crtbegin.o to find the start of
503 + the constructors, so we make sure it is
504 + first. Because this is a wildcard, it
505 + doesn't matter if the user does not
506 + actually link against crtbegin.o; the
507 + linker won't look for a file to match a
508 + wildcard. The wildcard also means that it
509 + doesn't matter which directory crtbegin.o
512 + KEEP (*crtbegin.o(.ctors))
513 + KEEP (*crtbegin?.o(.ctors))
515 + /* We don't want to include the .ctor section from
516 + the crtend.o file until after the sorted ctors.
517 + The .ctor section from the crtend file contains the
518 + end of ctors marker and it must be last */
520 + KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))
521 + KEEP (*(SORT(.ctors.*)))
523 + ${CONSTRUCTING+${CTOR_END}}
525 +DTOR=".dtors ${CONSTRUCTING-0} :
527 + ${CONSTRUCTING+${DTOR_START}}
528 + KEEP (*crtbegin.o(.dtors))
529 + KEEP (*crtbegin?.o(.dtors))
530 + KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))
531 + KEEP (*(SORT(.dtors.*)))
533 + ${CONSTRUCTING+${DTOR_END}}
535 +STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} :
537 + ${RELOCATING+${USER_LABEL_PREFIX}_stack = .;}
541 +TEXT_START_ADDR="SEGMENT_START(\"text-segment\", ${TEXT_START_ADDR})"
542 +SHLIB_TEXT_START_ADDR="SEGMENT_START(\"text-segment\", ${SHLIB_TEXT_START_ADDR:-0})"
544 +if [ -z "$SEPARATE_CODE" ]; then
545 + SIZEOF_HEADERS_CODE=" + SIZEOF_HEADERS"
547 + SIZEOF_HEADERS_CODE=
550 +# if this is for an embedded system, don't add SIZEOF_HEADERS.
551 +if [ -z "$EMBEDDED" ]; then
552 + test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}${SIZEOF_HEADERS_CODE}"
554 + test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}"
558 +OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
559 + "${LITTLE_OUTPUT_FORMAT}")
560 +OUTPUT_ARCH(${OUTPUT_ARCH})
561 +${RELOCATING+ENTRY(${ENTRY})}
563 +${RELOCATING+${LIB_SEARCH_DIRS}}
564 +${RELOCATING+${EXECUTABLE_SYMBOLS}}
565 +${RELOCATING+${INPUT_FILES}}
566 +${RELOCATING- /* For some reason, the Solaris linker makes bad executables
567 + if gld -r is used and the intermediate file has sections starting
568 + at non-zero addresses. Could be a Solaris ld bug, could be a GNU ld
569 + bug. But for now assigning the zero vmas works. */}
573 + /* Read-only sections, merged into text segment: */
574 + ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+PROVIDE (__executable_start = ${TEXT_START_ADDR}); . = ${TEXT_BASE_ADDRESS};}}}
575 + ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR}${SIZEOF_HEADERS_CODE};}}
576 + ${CREATE_PIE+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR}${SIZEOF_HEADERS_CODE};}}
582 + ${INITIAL_READONLY_SECTIONS}
583 + .note.gnu.build-id : { *(.note.gnu.build-id) }
587 +test -n "${SEPARATE_CODE}" || emit_early_ro
589 +test -n "${RELOCATING+0}" || unset NON_ALLOC_DYN
590 +test -z "${NON_ALLOC_DYN}" || TEXT_DYNAMIC=
591 +cat > ldscripts/dyntmp.$$ <<EOF
592 + ${TEXT_DYNAMIC+${DYNAMIC}}
593 + .hash ${RELOCATING-0} : { *(.hash) }
594 + .gnu.hash ${RELOCATING-0} : { *(.gnu.hash) }
595 + .dynsym ${RELOCATING-0} : { *(.dynsym) }
596 + .dynstr ${RELOCATING-0} : { *(.dynstr) }
597 + .gnu.version ${RELOCATING-0} : { *(.gnu.version) }
598 + .gnu.version_d ${RELOCATING-0}: { *(.gnu.version_d) }
599 + .gnu.version_r ${RELOCATING-0}: { *(.gnu.version_r) }
602 +if [ "x$COMBRELOC" = x ]; then
603 + COMBRELOCCAT="cat >> ldscripts/dyntmp.$$"
605 + COMBRELOCCAT="cat > $COMBRELOC"
607 +eval $COMBRELOCCAT <<EOF
608 + ${INITIAL_RELOC_SECTIONS}
609 + .rel.init ${RELOCATING-0} : { *(.rel.init) }
610 + .rela.init ${RELOCATING-0} : { *(.rela.init) }
611 + .rel.text ${RELOCATING-0} : { *(.rel.text${RELOCATING+ .rel.text.* .rel.gnu.linkonce.t.*}) }
612 + .rela.text ${RELOCATING-0} : { *(.rela.text${RELOCATING+ .rela.text.* .rela.gnu.linkonce.t.*}) }
613 + .rel.fini ${RELOCATING-0} : { *(.rel.fini) }
614 + .rela.fini ${RELOCATING-0} : { *(.rela.fini) }
615 + .rel.${RODATA_NAME} ${RELOCATING-0} : { *(.rel.${RODATA_NAME}${RELOCATING+ .rel.${RODATA_NAME}.* .rel.gnu.linkonce.r.*}) }
616 + .rela.${RODATA_NAME} ${RELOCATING-0} : { *(.rela.${RODATA_NAME}${RELOCATING+ .rela.${RODATA_NAME}.* .rela.gnu.linkonce.r.*}) }
617 + ${OTHER_READONLY_RELOC_SECTIONS}
618 + .rel.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+ .rel.data.rel.ro.* .rel.gnu.linkonce.d.rel.ro.*}) }
619 + .rela.data.rel.ro ${RELOCATING-0} : { *(.rela.data.rel.ro${RELOCATING+ .rela.data.rel.ro.* .rela.gnu.linkonce.d.rel.ro.*}) }
620 + .rel.data ${RELOCATING-0} : { *(.rel.data${RELOCATING+ .rel.data.* .rel.gnu.linkonce.d.*}) }
621 + .rela.data ${RELOCATING-0} : { *(.rela.data${RELOCATING+ .rela.data.* .rela.gnu.linkonce.d.*}) }
622 + ${OTHER_READWRITE_RELOC_SECTIONS}
623 + .rel.tdata ${RELOCATING-0} : { *(.rel.tdata${RELOCATING+ .rel.tdata.* .rel.gnu.linkonce.td.*}) }
624 + .rela.tdata ${RELOCATING-0} : { *(.rela.tdata${RELOCATING+ .rela.tdata.* .rela.gnu.linkonce.td.*}) }
625 + .rel.tbss ${RELOCATING-0} : { *(.rel.tbss${RELOCATING+ .rel.tbss.* .rel.gnu.linkonce.tb.*}) }
626 + .rela.tbss ${RELOCATING-0} : { *(.rela.tbss${RELOCATING+ .rela.tbss.* .rela.gnu.linkonce.tb.*}) }
627 + .rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
628 + .rela.ctors ${RELOCATING-0} : { *(.rela.ctors) }
629 + .rel.dtors ${RELOCATING-0} : { *(.rel.dtors) }
630 + .rela.dtors ${RELOCATING-0} : { *(.rela.dtors) }
631 + .rel.got ${RELOCATING-0} : { *(.rel.got) }
632 + .rela.got ${RELOCATING-0} : { *(.rela.got) }
633 + ${OTHER_GOT_RELOC_SECTIONS}
638 + .rel.${BSS_NAME} ${RELOCATING-0} : { *(.rel.${BSS_NAME}${RELOCATING+ .rel.${BSS_NAME}.* .rel.gnu.linkonce.b.*}) }
639 + .rela.${BSS_NAME} ${RELOCATING-0} : { *(.rela.${BSS_NAME}${RELOCATING+ .rela.${BSS_NAME}.* .rela.gnu.linkonce.b.*}) }
641 + ${IREL_IN_PLT+$REL_IFUNC}
642 + ${IREL_IN_PLT+$RELA_IFUNC}
643 + ${IREL_IN_PLT-$REL_IPLT}
644 + ${IREL_IN_PLT-$RELA_IPLT}
647 +if [ -n "$COMBRELOC" ]; then
648 +cat >> ldscripts/dyntmp.$$ <<EOF
649 + .rel.dyn ${RELOCATING-0} :
652 +sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rela\./d;s/^.*: { *\(.*\)}$/ \1/' $COMBRELOC >> ldscripts/dyntmp.$$
653 +cat >> ldscripts/dyntmp.$$ <<EOF
655 + .rela.dyn ${RELOCATING-0} :
658 +sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rel\./d;s/^.*: { *\(.*\)}/ \1/' $COMBRELOC >> ldscripts/dyntmp.$$
659 +cat >> ldscripts/dyntmp.$$ <<EOF
664 +cat >> ldscripts/dyntmp.$$ <<EOF
665 + .rel.plt ${RELOCATING-0} :
668 + ${IREL_IN_PLT+${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rel_iplt_start = .);}}}
669 + ${IREL_IN_PLT+${RELOCATING+*(.rel.iplt)}}
670 + ${IREL_IN_PLT+${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rel_iplt_end = .);}}}
672 + .rela.plt ${RELOCATING-0} :
675 + ${IREL_IN_PLT+${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rela_iplt_start = .);}}}
676 + ${IREL_IN_PLT+${RELOCATING+*(.rela.iplt)}}
677 + ${IREL_IN_PLT+${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__rela_iplt_end = .);}}}
679 + ${OTHER_PLT_RELOC_SECTIONS}
684 + if test -z "${NO_REL_RELOCS}${NO_RELA_RELOCS}"; then
685 + cat ldscripts/dyntmp.$$
687 + if test -z "${NO_REL_RELOCS}"; then
688 + sed -e '/^[ ]*\.rela\.[^}]*$/,/}/d' -e '/^[ ]*\.rela\./d' ldscripts/dyntmp.$$
690 + if test -z "${NO_RELA_RELOCS}"; then
691 + sed -e '/^[ ]*\.rel\.[^}]*$/,/}/d' -e '/^[ ]*\.rel\./d' ldscripts/dyntmp.$$
694 + rm -f ldscripts/dyntmp.$$
697 +test -n "${NON_ALLOC_DYN}${SEPARATE_CODE}" || emit_dyn
700 + .init ${RELOCATING-0} :
702 + ${RELOCATING+${INIT_START}}
703 + KEEP (*(SORT_NONE(.init)))
704 + ${RELOCATING+${INIT_END}}
708 + ${TINY_READONLY_SECTION}
709 + .text ${RELOCATING-0} :
711 + ${RELOCATING+${TEXT_START_SYMBOLS}}
712 + ${RELOCATING+*(.text.unlikely .text.*_unlikely)}
713 + ${RELOCATING+*(.text.exit .text.exit.*)}
714 + ${RELOCATING+*(.text.startup .text.startup.*)}
715 + ${RELOCATING+*(.text.hot .text.hot.*)}
716 + *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
717 + /* .gnu.warning sections are handled specially by elf32.em. */
719 + ${RELOCATING+${OTHER_TEXT_SECTIONS}}
721 + .fini ${RELOCATING-0} :
723 + ${RELOCATING+${FINI_START}}
724 + KEEP (*(SORT_NONE(.fini)))
725 + ${RELOCATING+${FINI_END}}
727 + ${RELOCATING+PROVIDE (__${ETEXT_NAME} = .);}
728 + ${RELOCATING+PROVIDE (_${ETEXT_NAME} = .);}
729 + ${RELOCATING+PROVIDE (${ETEXT_NAME} = .);}
732 +if test -n "${SEPARATE_CODE}"; then
734 + /* Adjust the address for the rodata segment. We want to adjust up to
735 + the same address within the page on the next page up. */
736 + ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${RODATA_ADDR-ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))};}}}
737 + ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_RODATA_ADDR-ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))};}}
738 + ${CREATE_PIE+${RELOCATING+. = ${SHLIB_RODATA_ADDR-ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))};}}
745 + ${WRITABLE_RODATA-${RODATA}}
746 + .${RODATA_NAME}1 ${RELOCATING-0} : { *(.${RODATA_NAME}1) }
747 + ${CREATE_SHLIB-${SDATA2}}
748 + ${CREATE_SHLIB-${SBSS2}}
749 + ${OTHER_READONLY_SECTIONS}
750 + .eh_frame_hdr : { *(.eh_frame_hdr) }
751 + .eh_frame ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) }
752 + .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { *(.gcc_except_table
753 + .gcc_except_table.*) }
754 + /* These sections are generated by the Sun/Oracle C++ compiler. */
755 + .exception_ranges ${RELOCATING-0} : ONLY_IF_RO { *(.exception_ranges
756 + .exception_ranges*) }
758 + /* Adjust the address for the data segment. We want to adjust up to
759 + the same address within the page on the next page up. */
760 + ${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}}
761 + ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
762 + ${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
764 + /* Exception handling */
765 + .eh_frame ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
766 + .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
767 + .exception_ranges ${RELOCATING-0} : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
769 + /* Thread Local Storage sections */
770 + .tdata ${RELOCATING-0} : { *(.tdata${RELOCATING+ .tdata.* .gnu.linkonce.td.*}) }
771 + .tbss ${RELOCATING-0} : { *(.tbss${RELOCATING+ .tbss.* .gnu.linkonce.tb.*})${RELOCATING+ *(.tcommon)} }
773 + .preinit_array ${RELOCATING-0} :
775 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__preinit_array_start = .);}}
776 + KEEP (*(.preinit_array))
777 + ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__preinit_array_end = .);}}
779 + ${RELOCATING+${INIT_ARRAY}}
780 + ${RELOCATING+${FINI_ARRAY}}
781 + ${SMALL_DATA_CTOR-${RELOCATING+${CTOR}}}
782 + ${SMALL_DATA_DTOR-${RELOCATING+${DTOR}}}
783 + .jcr ${RELOCATING-0} : { KEEP (*(.jcr)) }
785 + ${RELOCATING+${DATARELRO}}
786 + ${OTHER_RELRO_SECTIONS}
787 + ${TEXT_DYNAMIC-${DYNAMIC}}
788 + ${DATA_GOT+${RELRO_NOW+${GOT}}}
789 + ${DATA_GOT+${RELRO_NOW+${GOTPLT}}}
790 + ${DATA_GOT+${RELRO_NOW-${SEPARATE_GOTPLT+${GOT}}}}
791 + ${RELOCATING+${DATA_SEGMENT_RELRO_END}}
792 + ${DATA_GOT+${RELRO_NOW-${SEPARATE_GOTPLT-${GOT}}}}
793 + ${DATA_GOT+${RELRO_NOW-${GOTPLT}}}
795 + ${DATA_PLT+${PLT_BEFORE_GOT-${PLT}}}
797 + .data ${RELOCATING-0} :
799 + ${RELOCATING+${DATA_START_SYMBOLS}}
800 + *(.data${RELOCATING+ .data.* .gnu.linkonce.d.*})
801 + ${CONSTRUCTING+SORT(CONSTRUCTORS)}
803 + .data1 ${RELOCATING-0} : { *(.data1) }
804 + ${WRITABLE_RODATA+${RODATA}}
805 + ${OTHER_READWRITE_SECTIONS}
806 + ${SMALL_DATA_CTOR+${RELOCATING+${CTOR}}}
807 + ${SMALL_DATA_DTOR+${RELOCATING+${DTOR}}}
808 + ${DATA_PLT+${PLT_BEFORE_GOT+${PLT}}}
809 + ${SDATA_GOT+${RELOCATING+${OTHER_GOT_SYMBOLS+. = .; ${OTHER_GOT_SYMBOLS}}}}
810 + ${SDATA_GOT+${GOT}}
811 + ${SDATA_GOT+${OTHER_GOT_SECTIONS}}
813 + ${OTHER_SDATA_SECTIONS}
814 + ${RELOCATING+${DATA_END_SYMBOLS-${USER_LABEL_PREFIX}_edata = .; PROVIDE (${USER_LABEL_PREFIX}edata = .);}}
815 + ${RELOCATING+. = .;}
816 + ${RELOCATING+${USER_LABEL_PREFIX}__bss_start = .;}
817 + ${RELOCATING+${OTHER_BSS_SYMBOLS}}
820 + .${BSS_NAME} ${RELOCATING-0} :
823 + *(.${BSS_NAME}${RELOCATING+ .${BSS_NAME}.* .gnu.linkonce.b.*})
825 + /* Align here to ensure that the .bss section occupies space up to
826 + _end. Align after .bss to ensure correct alignment even if the
827 + .bss section disappears because there are no input sections.
828 + FIXME: Why do we need it? When there is no .bss section, we don't
829 + pad the .data section. */
830 + ${RELOCATING+. = ALIGN(. != 0 ? ${ALIGNMENT} : 1);}
832 + ${OTHER_BSS_SECTIONS}
833 + ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
834 + ${RELOCATING+. = ALIGN(${ALIGNMENT});}
836 + ${RELOCATING+. = ALIGN(${ALIGNMENT});}
837 + ${RELOCATING+${OTHER_END_SYMBOLS}}
838 + ${RELOCATING+${END_SYMBOLS-${USER_LABEL_PREFIX}_end = .; PROVIDE (${USER_LABEL_PREFIX}end = .);}}
839 + ${RELOCATING+${DATA_SEGMENT_END}}
842 +test -z "${NON_ALLOC_DYN}" || emit_dyn
845 + /* Stabs debugging sections. */
846 + .stab 0 : { *(.stab) }
847 + .stabstr 0 : { *(.stabstr) }
848 + .stab.excl 0 : { *(.stab.excl) }
849 + .stab.exclstr 0 : { *(.stab.exclstr) }
850 + .stab.index 0 : { *(.stab.index) }
851 + .stab.indexstr 0 : { *(.stab.indexstr) }
853 + .comment 0 : { *(.comment) }
855 + /* DWARF debug sections.
856 + Symbols in the DWARF debugging sections are relative to the beginning
857 + of the section so we begin them at 0. */
860 + .debug 0 : { *(.debug) }
861 + .line 0 : { *(.line) }
863 + /* GNU DWARF 1 extensions */
864 + .debug_srcinfo 0 : { *(.debug_srcinfo) }
865 + .debug_sfnames 0 : { *(.debug_sfnames) }
867 + /* DWARF 1.1 and DWARF 2 */
868 + .debug_aranges 0 : { *(.debug_aranges) }
869 + .debug_pubnames 0 : { *(.debug_pubnames) }
872 + .debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
873 + .debug_abbrev 0 : { *(.debug_abbrev) }
874 + .debug_line 0 : { *(.debug_line) }
875 + .debug_frame 0 : { *(.debug_frame) }
876 + .debug_str 0 : { *(.debug_str) }
877 + .debug_loc 0 : { *(.debug_loc) }
878 + .debug_macinfo 0 : { *(.debug_macinfo) }
880 + /* SGI/MIPS DWARF 2 extensions */
881 + .debug_weaknames 0 : { *(.debug_weaknames) }
882 + .debug_funcnames 0 : { *(.debug_funcnames) }
883 + .debug_typenames 0 : { *(.debug_typenames) }
884 + .debug_varnames 0 : { *(.debug_varnames) }
887 + .debug_pubtypes 0 : { *(.debug_pubtypes) }
888 + .debug_ranges 0 : { *(.debug_ranges) }
890 + /* DWARF Extension. */
891 + .debug_macro 0 : { *(.debug_macro) }
893 + ${TINY_DATA_SECTION}
894 + ${TINY_BSS_SECTION}
896 + ${STACK_ADDR+${STACK}}
899 + ${RELOCATING+${OTHER_SYMBOLS}}
900 + ${RELOCATING+${DISCARDED}}