3 # Copyright (C) 2013-2023 Free Software Foundation, Inc.
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
19 # This is the linker target specific file. This is invoked by the
20 # autoconf generated configure script. Putting it in a separate shell
21 # file lets us skip running autoconf when modifying target specific
24 # This file switches on the shell variable ${targ}, and sets the
25 # following shell variables:
26 # targ_emul name of linker emulation to use
27 # targ_extra_emuls additional linker emulations to provide
28 # targ_extra_libpath additional linker emulations using LIB_PATH
29 # targ_extra_ofiles additional host-compiled objects needed by the emulation
30 # targ64_extra_emuls additional linker emulations to provide if
31 # --enable-64-bit-bfd is given or if host is 64 bit.
32 # targ64_extra_libpath additional linker emulations using LIB_PATH if
33 # --enable-64-bit-bfd is given or if host is 64 bit.
34 # NATIVE_LIB_DIRS library directories to search on this host
35 # (if we are a native or sysrooted linker)
39 targ_extra_ofiles="ldelf.o ldelfgen.o"
43 # By default the linker will generate warnings if it is creating an
44 # executable stack or a segment with all three of read, write and
45 # execute permissions. These settings are not appropriate for all
46 # targets however, so we can change them here:
48 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
50 # The CRIS and V850 default linker scripts yields just one segment
51 # as intended, so a rwx segment warning is not helpful.
52 # The HPPA's and SPARC's PLT sections use a constructed trampoline
53 # hence it needs to have a RWX segment.
54 # Many MIPS targets use executable segments.
55 cris-*-* | crisv32-*-* | \
60 ac_default_ld_warn_rwx_segments=0
67 if test "${ac_default_ld_warn_execstack}" = 2; then
69 # The HPPA port needs to support older kernels that
70 # use executable stacks for signals and syscalls.
71 # Many MIPS targets use executable stacks.
74 ac_default_ld_warn_execstack=0
81 # Please try to keep this table more or less in alphabetic order - it
82 # makes it much easier to lookup a specific archictecture.
84 aarch64_be-*-elf) targ_emul=aarch64elfb
85 targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b armelfb armelf"
87 aarch64-*-elf | aarch64-*-rtems* | aarch64-*-genode*)
89 targ_extra_emuls="aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb"
91 aarch64-*-cloudabi*) targ_emul=aarch64cloudabi
92 targ_extra_emuls=aarch64cloudabib
94 aarch64-*-freebsd*) targ_emul=aarch64fbsd
95 targ_extra_emuls="aarch64fbsdb aarch64elf"
97 aarch64-*-fuchsia*) targ_emul=aarch64elf
98 targ_extra_emuls="aarch64elfb armelf armelfb"
100 aarch64_be-*-linux-gnu_ilp32)
101 targ_emul=aarch64linux32b
102 targ_extra_libpath="aarch64linuxb aarch64linux aarch64linux32 armelfb_linux_eabi armelf_linux_eabi"
103 targ_extra_emuls="aarch64elfb aarch64elf aarch64elf32 aarch64elf32b armelfb armelf $targ_extra_libpath"
105 aarch64-*-linux-gnu_ilp32)
106 targ_emul=aarch64linux32
107 targ_extra_libpath="aarch64linux aarch64linuxb aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
108 targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath"
110 aarch64_be-*-linux*) targ_emul=aarch64linuxb
111 targ_extra_libpath="aarch64linux aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
112 targ_extra_emuls="aarch64elfb aarch64elf aarch64elf32 aarch64elf32b armelfb armelf $targ_extra_libpath"
114 aarch64-*-linux*) targ_emul=aarch64linux
115 targ_extra_libpath="aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi"
116 targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb $targ_extra_libpath"
118 aarch64-*-haiku*) targ_emul=aarch64haiku
119 targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb armelf_haiku $targ_extra_libpath"
123 targ_extra_emuls="arm64pe"
124 targ_extra_ofiles="deffilep.o pep-dll-aarch64.o"
126 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
127 targ_emul=elf64alpha_fbsd
128 targ_extra_emuls="elf64alpha alpha"
129 tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'`
131 alpha*-*-linux*ecoff*) targ_emul=alpha
132 targ_extra_emuls=elf64alpha
133 tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
135 alpha*-*-linux-*) targ_emul=elf64alpha
136 targ_extra_emuls=alpha
137 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux\(-gnu\)*/linux\1ecoff/'`
139 alpha*-*-osf*) targ_emul=alpha
142 alpha*-*-gnu*) targ_emul=elf64alpha
144 alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd
146 alpha*-*-openbsd*) targ_emul=elf64alpha
148 alpha*-*-*vms*) targ_emul=alphavms
151 am33_2.0-*-linux*) targ_emul=elf32am33lin # mn10300 variant
153 arc*-*-elf*) targ_emul=arcelf
154 targ_extra_emuls="arclinux arclinux_nps arcv2elf arcv2elfx"
156 arc*-*-linux*) case "${with_cpu}" in
157 nps400) targ_emul=arclinux_nps
158 targ_extra_emuls=arclinux
160 *) targ_emul=arclinux
161 targ_extra_emuls=arclinux_nps
164 targ_extra_emuls="${targ_extra_emuls} arcelf arcv2elf arcv2elfx"
166 arm*-*-cegcc*) targ_emul=arm_wince_pe
167 targ_extra_ofiles="deffilep.o pe-dll.o"
168 LIB_PATH='${tooldir}/lib/w32api'
170 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce*)
171 targ_emul=arm_wince_pe
172 targ_extra_ofiles="deffilep.o pe-dll.o"
174 arm-*-pe) targ_emul=armpe
175 targ_extra_ofiles="deffilep.o pe-dll.o"
177 arm*b-*-freebsd*) targ_emul=armelfb_fbsd
178 targ_extra_emuls="armelf_fbsd armelf"
180 arm*-*-freebsd* | arm-*-kfreebsd*-gnu)
181 targ_emul=armelf_fbsd
182 targ_extra_emuls="armelfb_fbsd armelf"
184 armeb-*-netbsd*) targ_emul=armelfb_nbsd;
185 targ_extra_emuls="armelf_nbsd armelf"
187 arm-*-netbsd*) targ_emul=armelf_nbsd;
188 targ_extra_emuls="armelfb_nbsd armelf"
190 arm-*-nto*) targ_emul=armnto
192 arm-*-phoenix*) targ_emul=armelf
194 armeb-*-elf | armeb-*-eabi*)
197 arm-*-elf | arm*-*-eabi* | arm-*-rtems* | arm-*-genode*)
200 arm-*-kaos*) targ_emul=armelf
202 arm9e-*-elf) targ_emul=armelf
204 arm*b-*-linux-*eabi*) targ_emul=armelfb_linux_eabi
205 targ_extra_emuls=armelf_linux_eabi
206 targ_extra_libpath=$targ_extra_emuls
208 arm*b-*-linux-*) targ_emul=armelfb_linux
209 targ_extra_emuls="armelfb armelf armelf_linux"
210 targ_extra_libpath="armelf_linux"
212 arm*-*-linux-*eabi*) targ_emul=armelf_linux_eabi
213 targ_extra_emuls="armelfb_linux_eabi"
214 targ_extra_libpath=$targ_extra_emuls
216 arm*-*-uclinuxfdpiceabi)
217 targ_emul=armelf_linux_eabi
218 targ_extra_emuls="armelfb_linux_eabi armelf_linux_fdpiceabi armelfb_linux_fdpiceabi"
219 targ_extra_libpath=$targ_extra_emuls
221 arm*-*-linux-*) targ_emul=armelf_linux
222 targ_extra_emuls="armelf armelfb armelfb_linux"
223 targ_extra_libpath="armelfb_linux"
225 arm*b-*-nacl*) targ_emul=armelfb_nacl
226 targ_extra_emuls="armelf_nacl"
227 targ_extra_libpath=$targ_extra_emuls
229 arm*-*-nacl*) targ_emul=armelf_nacl
230 targ_extra_emuls="armelfb_nacl"
231 targ_extra_libpath=$targ_extra_emuls
233 arm*-*-uclinux*eabi*) targ_emul=armelf_linux_eabi
234 targ_extra_emuls=armelfb_linux_eabi
235 targ_extra_libpath=$targ_extra_emuls
237 arm*-*-uclinux*) targ_emul=armelf_linux
238 targ_extra_emuls="armelf armelfb armelfb_linux"
239 targ_extra_libpath="armelfb_linux"
241 arm-*-vxworks) targ_emul=armelf_vxworks
243 arm*-*-conix*) targ_emul=armelf
245 arm*-*-fuchsia*) targ_emul=armelf_fuchsia
246 targ_extra_emuls="armelfb_fuchsia armelf armelfb"
248 arm*-*-haiku*) targ_emul=armelf_haiku
249 targ_extra_emuls=armelf
251 avr-*-*) targ_emul=avr2
252 targ_extra_emuls="avr1 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1 avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny"
254 bfin-*-elf | bfin-*-rtems*)
256 targ_extra_emuls="elf32bfinfd"
257 targ_extra_libpath=$targ_extra_emuls
259 bfin-*-uclinux*) targ_emul=elf32bfin;
260 targ_extra_emuls="elf32bfinfd"
261 targ_extra_libpath=$targ_extra_emuls
263 bfin-*-linux-uclibc*) targ_emul=elf32bfinfd;
264 targ_extra_emuls="elf32bfin"
265 targ_extra_libpath=$targ_extra_emuls
267 bpf-*-*) targ_emul=elf64bpf
269 cr16-*-elf*) targ_emul=elf32cr16
271 cris-*-*aout*) targ_emul=crisaout
272 targ_extra_emuls="criself crislinux"
273 targ_extra_libpath=$targ_extra_emuls
275 cris-*-linux-* | crisv32-*-linux-*)
278 cris-*-* | crisv32-*-*) targ_emul=criself
279 targ_extra_emuls="crisaout crislinux"
280 targ_extra_libpath=$targ_extra_emuls
282 crx-*-elf*) targ_emul=elf32crx
285 csky-*-elf*) targ_emul=cskyelf
287 csky-*-linux*) targ_emul=cskyelf_linux
290 d10v-*-*) targ_emul=d10velf
292 d30v-*-*ext*) targ_emul=d30v_e
293 targ_extra_emuls="d30velf d30v_o"
294 targ_extra_ofiles=ldelfgen.o
296 d30v-*-*onchip*) targ_emul=d30v_o
297 targ_extra_emuls="d30velf d30v_e"
298 targ_extra_ofiles=ldelfgen.o
300 d30v-*-*) targ_emul=d30velf
301 targ_extra_emuls="d30v_e d30v_o"
302 targ_extra_ofiles=ldelfgen.o
304 dlx-*-elf*) targ_emul=elf32_dlx
305 targ_extra_ofiles=ldelfgen.o
307 epiphany-*-*) targ_emul=elf32epiphany
308 targ_extra_emuls="elf32epiphany_4x4"
310 fido*-*-elf*) targ_emul=m68kelf
312 fr30-*-*) targ_emul=elf32fr30
313 targ_extra_ofiles=ldelfgen.o
315 frv-*-*linux*) targ_emul=elf32frvfd
317 frv-*-*) targ_emul=elf32frv
318 targ_extra_emuls="elf32frvfd"
320 ft32-*-*) targ_emul=elf32ft32
321 targ_extra_ofiles=ldelfgen.o
323 h8300-*-elf* | h8300-*-rtems*)
325 targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf"
328 targ_emul=h8300elf_linux;
329 targ_extra_emuls="h8300helf_linux h8300self_linux h8300sxelf_linux"
331 hppa*64*-*-linux-*) targ_emul=hppa64linux
333 hppa*64*-hpux*) targ_emul=elf64hppa
335 hppa*-*-linux-*) targ_emul=hppalinux
337 hppa*-*-*elf*) targ_emul=hppaelf
339 hppa*-*-lites*) targ_emul=hppaelf
341 hppa*-*-netbsd*) targ_emul=hppanbsd
343 hppa*-*-openbsd*) targ_emul=hppaobsd
345 i[3-7]86-*-nto-qnx*) targ_emul=i386nto
347 i[3-7]86-*-go32) targ_emul=i386go32
350 i[3-7]86-*-msdosdjgpp*) targ_emul=i386go32
353 i[3-7]86-*-lynxos*) targ_emul=i386lynx
355 i[3-7]86-*-aros*) targ_emul=elf_i386
356 targ_extra_emuls=elf_iamcu
358 i[3-7]86-*-rdos*) targ_emul=elf_i386
359 targ_extra_emuls=elf_iamcu
361 i[3-7]86-*-bsd) targ_emul=i386bsd
364 i[3-7]86-*-bsd386) targ_emul=i386bsd
367 i[3-7]86-*-bsdi*) targ_emul=i386bsd
370 i[3-7]86-*-linux-*) targ_emul=elf_i386
371 targ_extra_emuls="elf_iamcu"
372 targ64_extra_emuls="elf_x86_64 elf32_x86_64"
373 targ64_extra_libpath="elf_x86_64 elf32_x86_64"
375 i[3-7]86-*-redox*) targ_emul=elf_i386
376 targ_extra_emuls=elf_x86_64
378 i[3-7]86-*-solaris2*) targ_emul=elf_i386_sol2
379 targ_extra_emuls="elf_i386_ldso elf_i386 elf_iamcu elf_x86_64_sol2 elf_x86_64"
380 targ_extra_libpath=$targ_extra_emuls
382 i[3-7]86-*-solaris*) targ_emul=elf_i386_ldso
383 targ_extra_emuls="elf_i386"
384 targ_extra_libpath=$targ_extra_emuls
386 i[3-7]86-*-netbsd* | \
387 i[3-7]86-*-netbsd*-gnu* | \
388 i[3-7]86-*-knetbsd*-gnu | \
391 targ_extra_emuls="elf_iamcu"
393 i[3-7]86-*-elfiamcu) targ_emul=elf_iamcu
394 targ_extra_emuls=elf_i386
396 i[3-7]86-*-elf* | i[3-7]86-*-rtems* | i[3-7]86-*-genode*)
398 targ_extra_emuls=elf_iamcu
400 i[3-7]86-*-dragonfly*) targ_emul=elf_i386
401 targ_extra_emuls="elf_iamcu i386bsd"
403 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
404 targ_emul=elf_i386_fbsd
405 targ_extra_emuls="elf_i386 elf_iamcu i386bsd"
407 i[3-7]86-*-gnu*) targ_emul=elf_i386
408 targ_extra_emuls=elf_iamcu
410 i[3-7]86-*-msdos*) targ_emul=i386msdos
411 targ_extra_emuls=i386aout
414 i[3-7]86-*-moss*) targ_emul=i386moss
415 targ_extra_emuls=i386msdos
417 i[3-7]86-*-winnt*) targ_emul=i386pe ;
418 targ_extra_ofiles="deffilep.o pdb.o pe-dll.o"
420 i[3-7]86-*-pe) targ_emul=i386pe ;
421 targ_extra_ofiles="deffilep.o pdb.o pe-dll.o"
423 i[3-7]86-*-cygwin*) targ_emul=i386pe ;
424 targ_extra_ofiles="deffilep.o pdb.o pe-dll.o" ;
425 test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api'
427 i[3-7]86-*-mingw32*) targ_emul=i386pe ;
428 targ_extra_ofiles="deffilep.o pdb.o pe-dll.o"
430 i[3-7]86-*-interix*) targ_emul=i386pe_posix;
431 targ_extra_ofiles="deffilep.o pe-dll.o"
433 i[3-7]86-*-beospe*) targ_emul=i386beos
436 i[3-7]86-*-beos*) targ_emul=elf_i386_be
438 i[3-7]86-*-haiku*) targ_emul=elf_i386_haiku
440 i[3-7]86-*-vxworks*) targ_emul=elf_i386_vxworks
442 i[3-7]86-*-chaos) targ_emul=elf_i386_chaos
444 ia16-*-elf*) targ_emul=elf_i386
445 targ_extra_emuls=i386msdos
447 ia64-*-elf*) targ_emul=elf64_ia64
449 ia64-*-freebsd* | ia64-*-kfreebsd*-gnu)
450 targ_emul=elf64_ia64_fbsd
451 targ_extra_emuls="elf64_ia64"
453 ia64-*-netbsd*) targ_emul=elf64_ia64
455 ia64-*-linux*) targ_emul=elf64_ia64
457 ia64-*-*vms*) targ_emul=elf64_ia64_vms
458 targ_extra_ofiles=ldelfgen.o
460 ia64-*-aix*) targ_emul=elf64_aix
462 ip2k-*-elf) targ_emul=elf32ip2k
464 iq2000-*-elf) targ_emul=elf32iq2000
465 targ_extra_emuls="elf32iq10"
466 targ_extra_ofiles=ldelfgen.o
468 lm32-*-*linux*) targ_emul=elf32lm32fd
470 lm32-*-*) targ_emul=elf32lm32
471 targ_extra_emuls="elf32lm32fd"
476 m32r*le-*-elf*) targ_emul=m32rlelf
481 m32r*le-*-linux-*) targ_emul=m32rlelf_linux
483 m32r*-*-linux-*) targ_emul=m32relf_linux
485 m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
486 targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb"
488 m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
489 targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb"
491 m68*-*-netbsd*) targ_emul=m68kelfnbsd
493 m68*-*-haiku*) targ_emul=m68kelf
495 m68*-*-*) targ_emul=m68kelf
497 mcore-*-pe) targ_emul=mcorepe ;
498 targ_extra_ofiles="deffilep.o pe-dll.o"
500 mcore-*-elf) targ_emul=elf32mcore
502 mep-*-elf) targ_emul=elf32mep
504 metag-*-*) targ_emul=elf32metag
506 microblazeel*-linux*) targ_emul="elf32mbel_linux"
507 targ_extra_emuls="elf32mb_linux"
509 microblaze*-linux*) targ_emul="elf32mb_linux"
510 targ_extra_emuls="elf32mbel_linux"
512 microblazeel*) targ_emul=elf32microblazeel
513 targ_extra_emuls=elf32microblaze
515 microblaze*) targ_emul=elf32microblaze
516 targ_extra_emuls=elf32microblazeel
518 mips*-sgi-irix5*) targ_emul=elf32bsmip
520 mips*-sgi-irix6*) targ_emul=elf32bmipn32
521 targ_extra_emuls="elf32bsmip elf64bmip"
522 targ_extra_libpath=$targ_extra_emuls
524 mips*el-*-haiku*) targ_emul=elf_mipsel_haiku
525 targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
527 mips*el-*-netbsd*) targ_emul=elf32ltsmip
528 targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
530 mips*-*-netbsd*) targ_emul=elf32btsmip
531 targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip"
533 mips64el-*-openbsd*) targ_emul=elf64ltsmip
534 targ_extra_emuls=elf64btsmip
536 mips64-*-openbsd*) targ_emul=elf64btsmip
537 targ_extra_emuls=elf64ltsmip
539 mips*vr4300el-*-elf*) targ_emul=elf32l4300
541 mips*vr4300-*-elf*) targ_emul=elf32b4300
543 mips*vr4100el-*-elf*) targ_emul=elf32l4300
545 mips*vr4100-*-elf*) targ_emul=elf32b4300
547 mips*vr5000el-*-elf*) targ_emul=elf32l4300
549 mips*vr5000-*-elf*) targ_emul=elf32b4300
551 mips*el-sde-elf* | mips*el-mti-elf* | mips*el-img-elf*)
552 targ_emul=elf32ltsmip
553 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
555 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
556 targ_emul=elf32btsmip
557 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
559 mips64*el-ps2-elf*) targ_emul=elf32lr5900n32
560 targ_extra_emuls="elf32lr5900"
561 targ_extra_libpath=$targ_extra_emuls
563 mips*el-ps2-elf*) targ_emul=elf32lr5900
564 targ_extra_emuls="elf32lr5900n32"
565 targ_extra_libpath=$targ_extra_emuls
567 mips*el-*-elf*) targ_emul=elf32elmip
569 mips*-*-elf* | mips*-*-rtems*)
572 mips*el-*-vxworks*) targ_emul=elf32elmipvxworks
573 targ_extra_emuls="elf32ebmipvxworks"
575 mips*-*-vxworks*) targ_emul=elf32ebmipvxworks
576 targ_extra_emuls="elf32elmipvxworks"
578 mips*-*-windiss) targ_emul=elf32mipswindiss
580 mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
581 targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
582 targ_extra_libpath=$targ_extra_emuls
584 mips64*-*-linux-*) targ_emul=elf32btsmipn32
585 targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
586 targ_extra_libpath=$targ_extra_emuls
588 mips*el-*-linux-*) targ_emul=elf32ltsmip
589 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
590 targ_extra_libpath=$targ_extra_emuls
592 mips*-*-linux-*) targ_emul=elf32btsmip
593 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
594 targ_extra_libpath=$targ_extra_emuls
596 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
597 targ_emul=elf32ltsmipn32_fbsd
598 targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip elf32ltsmip_fbsd elf32btsmip_fbsd elf32btsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd"
599 targ_extra_libpath=$targ_extra_emuls
601 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
602 targ_emul=elf32btsmipn32_fbsd
603 targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip elf32ltsmip_fbsd elf32btsmip_fbsd elf32ltsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd"
604 targ_extra_libpath=$targ_extra_emuls
606 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
607 targ_emul=elf32ltsmip_fbsd
608 targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip elf32ltsmipn32_fbsd elf32btsmip_fbsd elf32btsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd"
609 targ_extra_libpath=$targ_extra_emuls
611 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
612 targ_emul=elf32btsmip_fbsd
613 targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip elf32ltsmip_fbsd elf32btsmipn32_fbsd elf32ltsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd"
614 targ_extra_libpath=$targ_extra_emuls
616 mips*-*-sysv4*) targ_emul=elf32btsmip
618 mmix-*-*) targ_emul=mmo
619 targ_extra_emuls=elf64mmix
621 mn10200-*-*) targ_emul=mn10200
622 targ_extra_ofiles=ldelfgen.o
624 mn10300-*-*) targ_emul=mn10300
626 moxie-*-moxiebox*) targ_emul=moxiebox
627 targ_extra_ofiles=ldelfgen.o
629 moxie-*-*) targ_emul=elf32moxie
631 msp430-*-*) targ_emul=msp430elf
632 targ_extra_emuls="msp430X"
633 targ_extra_ofiles=ldelfgen.o
635 mt-*elf) targ_emul=elf32mt
636 targ_extra_ofiles=ldelfgen.o
638 nds32*le-*-elf*) targ_emul=nds32elf
639 targ_extra_emuls="nds32elf16m nds32belf nds32belf16m"
641 nds32*be-*-elf*) targ_emul=nds32belf
642 targ_extra_emuls="nds32elf nds32elf16m nds32belf16m"
644 nds32*le-*-linux-gnu*) targ_emul=nds32elf_linux
646 nds32*be-*-linux-gnu*) targ_emul=nds32belf_linux
648 nios2*-*-linux*) targ_emul=nios2linux
650 nios2*-*-*) targ_emul=nios2elf
652 ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha
655 ns32k-*-*bsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd
658 or1k-*-elf | or1knd-*-elf | or1k-*-rtems* | or1knd-*-rtems*)
661 or1k-*-linux* | or1knd-*-linux*) targ_emul=elf32or1k_linux
663 pdp11-*-*) targ_emul=pdp11
666 pjl*-*-*) targ_emul=pjlelf
667 targ_extra_emuls="elf_i386 elf_iamcu"
669 pj*-*-*) targ_emul=pjelf
670 targ_extra_ofiles=ldelfgen.o
672 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
673 targ_emul=elf32ppc_fbsd
674 targ_extra_emuls="elf32ppc elf32ppcsim"
675 targ_extra_libpath=elf32ppc;
676 tdir_elf32ppcsim=`echo ${targ_alias} | sed -e 's/ppc/ppcsim/'`
678 powerpc64-*-freebsd*)
679 targ_emul=elf64ppc_fbsd
680 targ_extra_emuls="elf64ppc elf32ppc_fbsd elf32ppc"
681 targ_extra_libpath="elf32ppc_fbsd elf32ppc"
682 tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
683 tdir_elf32ppc_fbsd=$tdir_elf32ppc
685 powerpc64le-*-freebsd*)
686 targ_emul=elf64lppc_fbsd
687 targ_extra_emuls="elf64lppc"
690 targ_emul=elf32ppcvxworks
691 targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
693 powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
694 | powerpc*-*-linux* | powerpc*-*-netbsd* | powerpc*-*-openbsd* \
695 | powerpc*-*-rtems* \
696 | powerpc*-*-solaris* | powerpc*-*-kaos* | powerpc*-*-vxworks*)
700 targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
701 targ_extra_libpath="elf32ppc elf32ppclinux" ;;
703 targ_emul=elf32ppclinux
704 targ_extra_emuls="elf32ppc elf32ppcsim"
705 targ_extra_libpath=elf32ppc
706 targ64_extra_emuls=elf64ppc
707 targ64_extra_libpath=elf64ppc ;;
710 targ_extra_emuls="elf32ppclinux elf32ppcsim"
711 targ_extra_libpath=elf32ppclinux
712 targ64_extra_emuls=elf64ppc
713 targ64_extra_libpath=elf64ppc ;;
719 powerpcle-* | powerpc64le-*)
720 for z in td td64 targ_emul targ_extra_emuls \
721 targ_extra_libpath targ64_extra_emuls \
724 eval ${z}=\"\`echo \$${z} \| sed -e $s\`\"
728 # Why oh why did we set tooldir based on target_alias
729 # rather than on target?
730 eval tdir_${targ_emul}="${targ_alias}"
731 cpu=`echo "${targ_alias}" | sed -e 's/-.*//'`
732 rest=`echo "${targ_alias}" | sed -e 's/^[^-]*//'`
737 ta32=`echo "${cpu}" | sed -e s/64//`"${rest}"
738 ta64=`echo "${cpu}" | sed -e 's/64//;s/$/64/;s/'${le}'64$/64'${le}'/;s/be64$/64be/'`"${rest}"
739 eval test -n \"\$${td}\" || eval ${td}="${ta32}"
740 eval test -n \"\$${td}linux\" || eval ${td}linux="${ta32}"
741 eval test -n \"\$${td}sim\" || eval ${td}sim="${ta32}"
742 eval test -n \"\$${td64}\" || eval ${td64}="${ta64}"
743 # Now provide the other endian
744 for z in targ_extra_emuls targ_extra_libpath
746 eval ${z}=\"\$${z} \`echo ${targ_emul} \$${z} \| sed -e $s\`\"
748 for z in targ64_extra_emuls targ64_extra_libpath
750 eval ${z}=\"\$${z} \`echo \$${z} \| sed -e $s\`\"
752 td=`echo "${td}" | sed -e $s`
753 td64=`echo "${td64}" | sed -e $s`
755 powerpcle-* | powerpc64le-*)
756 cpu=`echo "${cpu}" | sed -e s/${le}\$//` ;;
758 cpu=`echo "${cpu}" | sed -e s/be\$//`${le} ;;
760 ta32=`echo "${cpu}" | sed -e s/64//`"${rest}"
761 ta64=`echo "${cpu}" | sed -e 's/64//;s/$/64/;s/'${le}'64$/64'${le}/`"${rest}"
762 eval test -n \"\$${td}\" || eval ${td}="${ta32}"
763 eval test -n \"\$${td}linux\" || eval ${td}linux="${ta32}"
764 eval test -n \"\$${td}sim\" || eval ${td}sim="${ta32}"
765 eval test -n \"\$${td64}\" || eval ${td64}="${ta64}"
767 powerpc-*-nto*) targ_emul=elf32ppcnto
769 powerpcle-*-nto*) targ_emul=elf32lppcnto
771 powerpc-*-macos*) targ_emul=ppcmacos
774 powerpc-*-aix[5-9]*) targ_emul=aix5ppc
777 powerpc-*-aix*) targ_emul=aixppc
780 powerpc-*-beos*) targ_emul=aixppc
783 powerpc-*-haiku*) targ_emul=elf32ppchaiku
785 powerpc-*-windiss*) targ_emul=elf32ppcwindiss
787 pru*-*-*) targ_emul=pruelf
789 riscv32be*-*-linux*) targ_emul=elf32briscv
790 targ_extra_emuls="elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64"
791 targ_extra_libpath=$targ_extra_emuls
793 riscv32*-*-linux*) targ_emul=elf32lriscv
794 targ_extra_emuls="elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64"
795 targ_extra_libpath=$targ_extra_emuls
797 riscvbe-*-* | riscv32be*-*-*)
798 targ_emul=elf32briscv
799 targ_extra_emuls="elf64briscv elf32lriscv elf64lriscv"
800 targ_extra_libpath=$targ_extra_emuls
802 riscv-*-* | riscv32*-*-*)
803 targ_emul=elf32lriscv
804 targ_extra_emuls="elf64lriscv elf32briscv elf64briscv"
805 targ_extra_libpath=$targ_extra_emuls
807 riscv64be*-*-linux*) targ_emul=elf64briscv
808 targ_extra_emuls="elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32"
809 targ_extra_libpath=$targ_extra_emuls
811 riscv64*-*-linux*) targ_emul=elf64lriscv
812 targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32"
813 targ_extra_libpath=$targ_extra_emuls
815 riscv64be*-*-*) targ_emul=elf64briscv
816 targ_extra_emuls="elf32briscv elf64lriscv elf32lriscv"
817 targ_extra_libpath=$targ_extra_emuls
819 riscv64*-*-*) targ_emul=elf64lriscv
820 targ_extra_emuls="elf32lriscv elf64briscv elf32briscv"
821 targ_extra_libpath=$targ_extra_emuls
823 rs6000-*-aix[5-9]*) targ_emul=aix5rs6
826 rs6000-*-aix*) targ_emul=aixrs6
829 rl78-*-*) targ_emul=elf32rl78
831 rx-*-linux*) targ_emul=elf32rx_linux
833 rx-*-*) targ_emul=elf32rx
835 s12z-*-*) targ_emul=m9s12zelf
836 targ_extra_ofiles=ldelfgen.o
838 s390x-*-linux*) targ_emul=elf64_s390
839 targ_extra_emuls=elf_s390
840 targ_extra_libpath=$targ_extra_emuls
841 tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'`
843 s390x-*-tpf*) targ_emul=elf64_s390
844 tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'`
846 s390-*-linux*) targ_emul=elf_s390
847 targ64_extra_emuls=elf64_s390
848 targ64_extra_libpath=elf64_s390
849 tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
851 score-*-elf) targ_emul=score7_elf
852 targ_extra_emuls=score3_elf
854 sh-*-linux*) targ_emul=shlelf_linux
855 targ_extra_emuls="shelf_linux shlelf_fd shelf_fd"
856 targ_extra_libpath=shelf_linux
858 sh*eb-*-linux*) targ_emul=shelf_linux
859 targ_extra_emuls="shelf_fd"
861 sh*-*-linux*) targ_emul=shlelf_linux
862 targ_extra_emuls="shlelf_fd"
864 sh*l*-*-netbsd*) targ_emul=shlelf_nbsd
865 targ_extra_emuls=shelf_nbsd
867 sh*-*-netbsd*) targ_emul=shelf_nbsd
868 targ_extra_emuls=shlelf_nbsd
870 shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
872 targ_extra_emuls="shelf shl sh"
874 sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos*)
876 targ_extra_emuls="shlelf sh shl"
878 sh-*-uclinux* | sh[12]-*-uclinux*)
879 targ_emul=shelf_uclinux
880 targ_extra_emuls="shelf shlelf sh shl shelf_fd shlelf_fd"
882 sh-*-vxworks) targ_emul=shelf_vxworks
883 targ_extra_emuls=shlelf_vxworks
885 sh-*-nto*) targ_emul=shelf_nto
886 targ_extra_emuls=shlelf_nto
888 sh-*-pe) targ_emul=shpe ;
889 targ_extra_ofiles="deffilep.o pe-dll.o"
891 sh-*-*) targ_emul=sh;
895 sparc64-*-freebsd* | sparcv9-*-freebsd* | sparc64-*-kfreebsd*-gnu | sparcv9-*-kfreebsd*-gnu)
896 targ_emul=elf64_sparc_fbsd
897 targ_extra_emuls="elf64_sparc elf32_sparc"
898 targ_extra_libpath=$targ_extra_emuls
899 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
901 sparc64-*-linux-*) targ_emul=elf64_sparc
902 targ_extra_emuls="elf32_sparc"
903 targ_extra_libpath=elf32_sparc
904 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
906 sparc64-*-*bsd*) targ_emul=elf64_sparc
907 targ_extra_emuls="elf32_sparc"
909 sparc64-*-solaris2* | sparcv9-*-solaris2*)
910 targ_emul=elf64_sparc_sol2
911 targ_extra_emuls="elf64_sparc elf32_sparc_sol2 elf32_sparc"
912 targ_extra_libpath=$targ_extra_emuls
913 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
915 sparc64-*-haiku*) targ_emul=elf64_sparc
917 sparc64-*-*) targ_emul=elf64_sparc
919 sparc*-*-linux-*) targ_emul=elf32_sparc
920 targ_extra_emuls="elf64_sparc"
921 targ_extra_libpath=elf64_sparc
922 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
924 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
925 targ_emul=elf32_sparc_sol2
926 targ_extra_emuls=elf32_sparc
928 sparc-*-solaris2*) targ_emul=elf32_sparc_sol2
929 targ_extra_emuls="elf32_sparc elf64_sparc_sol2 elf64_sparc"
930 targ_extra_libpath=$targ_extra_emuls
931 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
933 sparc*-*-vxworks*) targ_emul=elf32_sparc_vxworks
935 sparc*-*-*) targ_emul=elf32_sparc
937 spu-*-elf*) targ_emul=elf32_spu
939 tic30-*-*coff*) targ_emul=tic30coff
942 tic4x-*-* | c4x-*-*) targ_emul=tic4xcoff
943 targ_extra_emuls="tic3xcoff tic3xcoff_onchip"
946 tic54x-*-* | c54x*-*-*) targ_emul=tic54xcoff
949 tic6x-*-elf) targ_emul=elf32_tic6x_elf_le
950 targ_extra_emuls="elf32_tic6x_elf_be elf32_tic6x_le elf32_tic6x_be"
951 targ_extra_libpath=$targ_extra_emuls
953 tic6x-*-uclinux) targ_emul=elf32_tic6x_linux_le
954 targ_extra_emuls="elf32_tic6x_linux_be elf32_tic6x_le elf32_tic6x_be"
955 targ_extra_libpath=$targ_extra_emuls
957 tilegx-*-*) targ_emul=elf64tilegx
958 targ_extra_emuls="elf64tilegx_be elf32tilegx elf32tilegx_be"
959 targ_extra_libpath=$targ_extra_emuls
961 tilegxbe-*-*) targ_emul=elf64tilegx_be
962 targ_extra_emuls="elf64tilegx elf32tilegx elf32tilegx_be"
963 targ_extra_libpath=$targ_extra_emuls
965 tilepro-*-*) targ_emul=elf32tilepro
967 v850*-*-*) targ_emul=v850_rh850
968 targ_extra_emuls=v850
970 vax-*-netbsdaout*) targ_emul=vaxnbsd
971 targ_extra_emuls=elf32vax
973 vax-*-netbsd*) targ_emul=elf32vax
974 targ_extra_emuls=vaxnbsd
976 vax-*-linux-*) targ_emul=elf32vax
978 visium-*-elf) targ_emul=elf32visium
980 x86_64-*-rdos*) targ_emul=elf64rdos
982 x86_64-*-cloudabi*) targ_emul=elf_x86_64_cloudabi
984 x86_64-*-haiku*) targ_emul=elf_x86_64_haiku
985 targ_extra_emuls="elf_x86_64 elf_i386_haiku"
987 x86_64-*-linux-gnux32) targ_emul=elf32_x86_64
988 targ_extra_emuls="elf_x86_64 elf_i386 elf_iamcu"
989 targ_extra_libpath="elf_i386 elf_iamcu elf_x86_64"
990 tdir_elf_iamcu=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'`
991 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/' -e 's/-linux-gnux32/-linux-gnu/'`
993 x86_64-*-linux-*) targ_emul=elf_x86_64
994 targ_extra_emuls="elf32_x86_64 elf_i386 elf_iamcu"
995 targ_extra_libpath="elf_i386 elf32_x86_64"
996 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
998 x86_64-*-redox*) targ_emul=elf_x86_64
999 targ_extra_emuls=elf_i386
1001 x86_64-*-solaris2*) targ_emul=elf_x86_64_sol2
1002 targ_extra_emuls="elf_x86_64 elf_i386_sol2 elf_i386_ldso elf_i386 elf_iamcu"
1003 targ_extra_libpath=$targ_extra_emuls
1004 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
1006 x86_64-*-netbsd* | x86_64-*-openbsd*)
1007 targ_emul=elf_x86_64
1008 targ_extra_emuls="elf_i386 elf_iamcu"
1009 tdir_elf_iamcu=`echo ${targ_alias} | \
1010 sed -e 's/x86_64/i386/' -e 's/aout//'`
1011 tdir_elf_i386=`echo ${targ_alias} | \
1012 sed -e 's/x86_64/i386/' -e 's/aout//'`
1014 x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia* | x86_64-*-genode*)
1015 targ_emul=elf_x86_64
1016 targ_extra_emuls="elf_i386 elf_iamcu elf32_x86_64"
1017 targ_extra_libpath="elf_i386 elf_iamcu elf32_x86_64"
1018 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
1020 x86_64-*-dragonfly*) targ_emul=elf_x86_64
1021 targ_extra_emuls="elf_i386 elf_iamcu"
1023 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
1024 targ_emul=elf_x86_64_fbsd
1025 targ_extra_emuls="elf_i386_fbsd elf_x86_64 elf_i386 elf_iamcu"
1026 targ_extra_libpath="elf_i386_fbsd"
1027 tdir_elf_i386_fbsd=`echo ${targ_alias} \
1028 | sed -e 's/x86_64/i386/'`
1029 tdir_elf_iamcu=`echo ${targ_alias} \
1030 | sed -e 's/x86_64/i386/'`
1031 tdir_elf_i386=`echo ${targ_alias} \
1032 | sed -e 's/x86_64/i386/'`
1034 x86_64-*-pe | x86_64-*-pep) targ_emul=i386pep ;
1035 targ_extra_emuls=i386pe ;
1036 targ_extra_ofiles="deffilep.o pdb.o pep-dll-x86_64.o pe-dll.o"
1038 x86_64-*-cygwin) targ_emul=i386pep ;
1039 targ_extra_emuls=i386pe
1040 targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o"
1041 test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api'
1043 x86_64-*-mingw*) targ_emul=i386pep ;
1044 targ_extra_emuls=i386pe
1045 targ_extra_ofiles="deffilep.o pdb.o pep-dll.o pe-dll.o"
1047 x86_64-*-gnu*) targ_emul=elf_x86_64
1048 targ_extra_emuls="elf32_x86_64 elf_iamcu elf_i386"
1049 targ_extra_libpath="elf_i386 elf32_x86_64"
1050 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
1052 xgate-*-*) targ_emul=xgateelf
1053 targ_extra_ofiles=ldelfgen.o
1055 xstormy16-*-*) targ_emul=elf32xstormy16
1057 xtensa*-*-*) targ_emul=elf32xtensa
1059 z80-*-elf*) targ_emul=elf32z80
1060 targ_extra_ofiles="ldelf.o ldelfgen.o"
1062 z80-*-coff) targ_emul=z80
1065 z8k-*-coff) targ_emul=z8002
1066 targ_extra_emuls=z8001
1069 loongarch32-*) targ_emul=elf32loongarch
1071 loongarch64-*) targ_emul=elf64loongarch
1073 *-*-ieee*) targ_emul=vanilla
1077 echo 2>&1 "*** ld does not support target ${targ}"
1078 echo 2>&1 "*** see ld/configure.tgt for supported targets"
1083 NATIVE_LIB_DIRS='/usr/local/lib /lib /usr/lib'
1087 NATIVE_LIB_DIRS='/lib /usr/lib /usr/pkg/lib /usr/local/lib'
1091 NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib'
1095 NATIVE_LIB_DIRS=/usr/lib/pa20_64
1099 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
1102 i[3-7]86-*-solaris*)
1103 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
1106 i[3-7]86-pc-interix*)
1107 NATIVE_LIB_DIRS='/usr/local/lib $$INTERIX_ROOT/usr/lib /lib /usr/lib'
1111 NATIVE_LIB_DIRS='/usr/local/lib /usr/lib/ia64l64 /lib /usr/lib'
1115 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
1119 # This allows one to build a pair of PPU/SPU toolchains with common sysroot.
1120 NATIVE_LIB_DIRS='/lib'
1123 i[03-9x]86-*-cygwin* | x86_64-*-cygwin*)
1124 NATIVE_LIB_DIRS='/usr/lib /usr/lib/w32api'
1134 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
1140 frv-*-* | hppa*-*-* | ia64-*-* | mips*-*-*)
1141 # Don't enable -z relro by default since many relro tests fail on these
1143 # FAIL: strip -z relro (relro1)
1144 # FAIL: strip -z relro -shared (relro1)
1145 # FAIL: objcopy -z relro (relro1)
1146 # FAIL: objcopy -z relro -shared (relro1)
1147 # FAIL: objcopy -z relro (tdata1)
1148 # FAIL: objcopy -shared -z relro (tdata1)
1149 # FAIL: objcopy -z relro (tdata2)
1150 # FAIL: objcopy -shared -z relro (tdata2)
1151 # FAIL: objcopy -z relro (tdata3)
1152 # FAIL: objcopy -shared -z relro (tdata3)
1153 # FAIL: objcopy -shared -z relro (tbss1)
1154 # FAIL: objcopy -shared -z relro (tbss2)
1155 # FAIL: objcopy -shared -z relro (tbss3)
1158 if test ${ac_default_ld_z_relro} = unset; then
1159 ac_default_ld_z_relro=1
1164 # Enable -z separate-code and --warn-textrel by default for Linux/x86.
1166 i[3-7]86-*-linux-* | x86_64-*-linux-*)
1167 if test ${ac_default_ld_z_separate_code} = unset; then
1168 ac_default_ld_z_separate_code=1
1170 if test ${ac_default_ld_textrel_check} = unset; then
1171 ac_default_ld_textrel_check=yes