* config/tc-ms1.c: New.
[deliverable/binutils-gdb.git] / ld / configure.tgt
CommitLineData
252b5132
RH
1# This is the linker target specific file. This is invoked by the
2# autoconf generated configure script. Putting it in a separate shell
3# file lets us skip running autoconf when modifying target specific
4# information.
5
6# This file switches on the shell variable ${targ}, and sets the
7# following shell variables:
8# targ_emul name of linker emulation to use
9# targ_extra_emuls additional linker emulations to provide
3336653a 10# targ_extra_libpath additional linker emulations using LIB_PATH
252b5132 11# targ_extra_ofiles additional objects needed by the emulation
9c8ebd6a
DJ
12# NATIVE_LIB_DIRS library directories to search on this host
13# (if we are a native or sysrooted linker)
252b5132
RH
14
15targ_extra_emuls=
16targ_extra_ofiles=
17
18case "${targ}" in
4a096548 19am33_2.0-*-linux*) targ_emul=elf32am33lin ;;
252b5132
RH
20arm-epoc-pe) targ_emul=arm_epoc_pe ;
21 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
344a211f
NC
22arm-*-wince) targ_emul=armpe ;
23 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
24arm-*-pe) targ_emul=armpe ;
25 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
26arc-*-elf*) targ_emul=arcelf ;;
75ca919a
MM
27avr-*-*) targ_emul=avr2
28 targ_extra_emuls="avr1 avr3 avr4 avr5" ;;
0949843d 29cr16c-*-elf*) targ_emul=elf32cr16c ;;
1268a053 30cris-*-*aout*) targ_emul=crisaout
9d06555c
HPN
31 targ_extra_emuls="criself crislinux"
32 targ_extra_libpath=$targ_extra_emuls ;;
ed84e695 33cris-*-linux-* | crisv32-*-linux-*)
a0055007
HPN
34 targ_emul=crislinux ;;
35cris-*-* | crisv32-*-*) targ_emul=criself
1268a053
HPN
36 targ_extra_emuls="crisaout crislinux"
37 targ_extra_libpath=$targ_extra_emuls ;;
1fe1f39c 38crx-*-elf*) targ_emul=elf32crx ;;
252b5132
RH
39d10v-*-*) targ_emul=d10velf ;;
40d30v-*-*ext*) targ_emul=d30v_e; targ_extra_emuls="d30velf d30v_o" ;;
41d30v-*-*onchip*) targ_emul=d30v_o; targ_extra_emuls="d30velf d30v_e" ;;
42d30v-*-*) targ_emul=d30velf; targ_extra_emuls="d30v_e d30v_o" ;;
d172d4ba 43dlx-*-elf*) targ_emul=elf32_dlx ;;
9e1f170f 44ms1-*elf) targ_emul=elf32ms1 ;;
252b5132
RH
45sparc64-*-aout*) targ_emul=sparcaout ;;
46sparc64-*-elf*) targ_emul=elf64_sparc ;;
47sparc-sun-sunos4*) targ_emul=sun4 ;;
48sparclite*-*-elf) targ_emul=elf32_sparc ;;
49sparclite*-*-coff) targ_emul=coff_sparc ;;
50sparclite*-fujitsu-*) targ_emul=sparcaout ;;
51sparc*-*-aout) targ_emul=sparcaout ;;
52sparc*-*-coff) targ_emul=coff_sparc ;;
53sparc*-*-elf) targ_emul=elf32_sparc ;;
54sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
13dfd2d0 55sparc64-*-freebsd* | sparcv9-*-freebsd* | sparc64-*-kfreebsd*-gnu | sparcv9-*-kfreebsd*-gnu)
ac3e50bf
DB
56 targ_emul=elf64_sparc_fbsd
57 targ_extra_emuls="elf64_sparc elf32_sparc"
fb33b906
DB
58 targ_extra_libpath=$targ_extra_emuls
59 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
60 ;;
252b5132
RH
61sparc*-*-linux*aout*) targ_emul=sparclinux
62 targ_extra_emuls="elf32_sparc sun4"
63 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
64 tdir_sun4=sparc-sun-sunos4
65 ;;
ed84e695 66sparc64-*-linux-*) targ_emul=elf64_sparc
252b5132 67 targ_extra_emuls="elf32_sparc sparclinux sun4"
780248c4 68 targ_extra_libpath=elf32_sparc
252b5132
RH
69 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
70 tdir_sparclinux=${tdir_elf32_sparc}aout
71 tdir_sun4=sparc-sun-sunos4
72 ;;
ed84e695 73sparc*-*-linux-*) targ_emul=elf32_sparc
ad51fb57 74 targ_extra_emuls="sparclinux elf64_sparc sun4"
780248c4 75 targ_extra_libpath=elf64_sparc
252b5132 76 tdir_sparclinux=${targ_alias}aout
ad51fb57 77 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
252b5132
RH
78 tdir_sun4=sparc-sun-sunos4
79 ;;
c29ef4b5
AM
80sparc64-*-netbsd* | sparc64-*-openbsd*)
81 targ_emul=elf64_sparc
cf86e6df
AM
82 targ_extra_emuls="elf32_sparc"
83 ;;
d8475ff6 84sparc*-*-netbsd*elf*) targ_emul=elf32_sparc ;;
252b5132 85sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
a1836d49
AO
86sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
87 targ_emul=elf32_sparc ;;
88sparc-*-solaris2*) targ_emul=elf32_sparc
89 targ_extra_emuls="elf64_sparc"
90 targ_extra_libpath=$targ_extra_emuls
91 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
92 ;;
93sparcv9-*-solaris2* | sparc64-*-solaris2*)
94 targ_emul=elf64_sparc
95 targ_extra_emuls="elf32_sparc"
96 targ_extra_libpath=$targ_extra_emuls
97 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
98 ;;
252b5132
RH
99sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
100sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
24f6971a
NC
101sparc*-*-rtemsaout*) targ_emul=sparcaout ;;
102sparc*-*-rtemself*) targ_emul=elf32_sparc ;;
103sparc*-*-rtems*) targ_emul=elf32_sparc ;;
9d7e2ba5 104i860-*-coff) targ_emul=coff_i860 ;;
165589e4
JE
105i860-stardent-sysv4* | i860-stardent-elf*)
106 targ_emul=elf32_i860 ;;
252b5132
RH
107i960-wrs-vxworks5.0*) targ_emul=gld960 ;;
108i960-wrs-vxworks5*) targ_emul=gld960coff ;;
109i960-wrs-vxworks*) targ_emul=gld960 ;;
110i960-*-coff) targ_emul=gld960coff ;;
111i960-intel-nindy) targ_emul=gld960 ;;
112i960-*-rtems*) targ_emul=gld960coff ;;
0ccf812a 113i960-*-elf*) targ_emul=elf32_i960 ;;
800eeca4 114ia64-*-elf*) targ_emul=elf64_ia64 ;;
13dfd2d0
NC
115ia64-*-freebsd* | ia64-*-kfreebsd*-gnu)
116 targ_emul=elf64_ia64_fbsd
ac3e50bf 117 targ_extra_emuls="elf64_ia64" ;;
9596feea 118ia64-*-netbsd*) targ_emul=elf64_ia64 ;;
800eeca4 119ia64-*-linux*) targ_emul=elf64_ia64 ;;
41c49998 120ia64-*-aix*) targ_emul=elf64_aix ;;
6edf0760
NC
121m32r*le-*-elf*) targ_emul=m32rlelf ;;
122m32r*-*-elf*) targ_emul=m32relf ;;
ed84e695
NC
123m32r*le-*-linux-*) targ_emul=m32rlelf_linux ;;
124m32r*-*-linux-*) targ_emul=m32relf_linux ;;
60bcf0fa
NC
125m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
126 targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
127m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
128 targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb" ;;
252b5132
RH
129m68*-sun-sunos[34]*) targ_emul=sun3 ;;
130m68*-wrs-vxworks*) targ_emul=sun3 ;;
131m68*-ericsson-ose) targ_emul=sun3 ;;
132m68*-apple-aux*) targ_emul=m68kaux ;;
7499d566 133maxq-*-coff) targ_emul=maxqcoff;;
252b5132 134*-tandem-none) targ_emul=st2000 ;;
ed84e695 135i370-*-elf* | i370-*-linux-*) targ_emul=elf32i370 ;;
80c7c40a
NC
136i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;;
137i[3-7]86-*-vsta) targ_emul=vsta ;;
138i[3-7]86-go32-rtems*) targ_emul=i386go32 ;;
139i[3-7]86-*-go32) targ_emul=i386go32 ;;
140i[3-7]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
141i[3-7]86-*-aix*) targ_emul=i386coff ;;
142i[3-7]86-*-sco*) targ_emul=i386coff ;;
143i[3-7]86-*-isc*) targ_emul=i386coff ;;
144i[3-7]86-*-lynxos*) targ_emul=i386lynx ;;
145i[3-7]86-*-coff) targ_emul=i386coff ;;
146i[3-7]86-*-rtemscoff*) targ_emul=i386coff ;;
147i[3-7]86-*-rtemself*) targ_emul=elf_i386 ;;
148i[3-7]86-*-rtems*) targ_emul=elf_i386 ;;
149i[3-7]86-*-aros*) targ_emul=elf_i386 ;;
150i[3-7]86-*-bsd) targ_emul=i386bsd ;;
151i[3-7]86-*-bsd386) targ_emul=i386bsd ;;
152i[3-7]86-*-bsdi*) targ_emul=i386bsd ;;
153i[3-7]86-*-aout) targ_emul=i386aout ;;
154i[3-7]86-*-linux*aout*) targ_emul=i386linux
252b5132
RH
155 targ_extra_emuls=elf_i386
156 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
157 ;;
80c7c40a 158i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
ed84e695 159i[3-7]86-*-linux-*) targ_emul=elf_i386
252b5132 160 targ_extra_emuls=i386linux
39a2a3eb
L
161 if test x${want64} = xtrue; then
162 targ_extra_emuls="$targ_extra_emuls elf_x86_64"
163 fi
252b5132
RH
164 tdir_i386linux=${targ_alias}aout
165 ;;
ed84e695 166x86_64-*-linux-*) targ_emul=elf_x86_64
2be3aa03 167 targ_extra_emuls="elf_i386 i386linux"
beb43bb9
JH
168 targ_extra_libpath=elf_i386
169 tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
170 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
2be3aa03 171 ;;
80c7c40a
NC
172i[3-7]86-*-sysv[45]*) targ_emul=elf_i386 ;;
173i[3-7]86-*-solaris2*) targ_emul=elf_i386_ldso
d2b2c203 174 targ_extra_emuls="elf_i386 elf_x86_64"
506eee22 175 ;;
80c7c40a
NC
176i[3-7]86-*-unixware) targ_emul=elf_i386 ;;
177i[3-7]86-*-solaris*) targ_emul=elf_i386_ldso
506eee22
NC
178 targ_extra_emuls="elf_i386"
179 ;;
4615568e
NC
180i[3-7]86-*-netbsdelf* | \
181i[3-7]86-*-netbsd*-gnu* | \
182i[3-7]86-*-knetbsd*-gnu)
a06a29f2 183 targ_emul=elf_i386
9ffecff1
MG
184 targ_extra_emuls=i386nbsd
185 ;;
80c7c40a 186i[3-7]86-*-netbsdpe*) targ_emul=i386pe
436e8db0
NC
187 targ_extra_ofiles="deffilep.o pe-dll.o"
188 ;;
80c7c40a 189i[3-7]86-*-netbsd*) targ_emul=i386nbsd
9ffecff1
MG
190 targ_extra_emuls=elf_i386
191 ;;
8a8b2d4b
AJ
192x86_64-*-netbsd*) targ_emul=elf_x86_64
193 targ_extra_emuls="elf_i386 i386nbsd"
194 tdir_elf_i386=`echo ${targ_alias} | \
195 sed -e 's/x86_64/i386/'`
196 case "${tdir_elf_i386}" in
197 *-netbsdelf*) ;;
198 *)
199 tdir_elf_i386=`echo ${tdir_elf_i386} | \
200 sed -e 's/netbsd/netbsdelf/'`
201 ;;
202 esac
203 ;;
80c7c40a
NC
204i[3-7]86-*-netware) targ_emul=i386nw ;;
205i[3-7]86-*-elf*) targ_emul=elf_i386 ;;
34723071
NC
206x86_64-*-elf*)
207 targ_emul=elf_x86_64
208 targ_extra_emuls=elf_i386
209 ;;
80c7c40a
NC
210i[3-7]86-*-kaos*) targ_emul=elf_i386 ;;
211i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12])
2641b0c9 212 targ_emul=i386bsd ;;
13dfd2d0
NC
213i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
214 targ_emul=elf_i386_fbsd
ac3e50bf 215 targ_extra_emuls="elf_i386 i386bsd" ;;
13dfd2d0
NC
216x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
217 targ_emul=elf_x86_64_fbsd
ac3e50bf
DB
218 targ_extra_emuls="elf_i386_fbsd elf_x86_64 elf_i386"
219 tdir_elf_i386=`echo ${targ_alias} \
220 | sed -e 's/x86_64/i386/'`
fb33b906 221 ;;
80c7c40a
NC
222i[3-7]86-*-sysv*) targ_emul=i386coff ;;
223i[3-7]86-*-ptx*) targ_emul=i386coff ;;
224i[3-7]86-*-mach*) targ_emul=i386mach ;;
225i[3-7]86-*-gnu*) targ_emul=elf_i386 ;;
226i[3-7]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;;
227i[3-7]86-*-moss*) targ_emul=i386moss; targ_extra_emuls=i386msdos ;;
228i[3-7]86-*-winnt*) targ_emul=i386pe ;
252b5132 229 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
80c7c40a 230i[3-7]86-*-pe) targ_emul=i386pe ;
252b5132 231 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
80c7c40a 232i[3-7]86-*-cygwin*) targ_emul=i386pe ;
f8b0dbb8
CF
233 targ_extra_ofiles="deffilep.o pe-dll.o"
234 test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api' ;;
80c7c40a 235i[3-7]86-*-mingw32*) targ_emul=i386pe ;
252b5132 236 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
80c7c40a 237i[3-7]86-*-interix*) targ_emul=i386pe_posix;
a7e78dae 238 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
80c7c40a
NC
239i[3-7]86-*-beospe*) targ_emul=i386beos ;;
240i[3-7]86-*-beos*) targ_emul=elf_i386_be ;;
eac338cf 241i[3-7]86-*-vxworks*) targ_emul=elf_i386_vxworks ;;
80c7c40a 242i[3-7]86-*-chaos) targ_emul=elf_i386_chaos ;;
252b5132
RH
243m8*-*-*) targ_emul=m88kbcs ;;
244a29k-*-udi) targ_emul=sa29200 ;;
245a29k-*-ebmon) targ_emul=ebmon29k ;;
246a29k-*-*) targ_emul=a29k ;;
247# arm-*-riscix*) targ_emul=riscix ;;
248arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
249armeb-*-aout) targ_emul=armaoutb ;;
250arm-*-coff) targ_emul=armcoff ;;
13dfd2d0
NC
251arm-*-freebsd* | arm-*-kfreebsd*-gnu)
252 targ_emul=armelf_fbsd
ac3e50bf 253 targ_extra_emuls="armelf" ;;
658f2588
JT
254armeb-*-netbsdelf*) targ_emul=armelfb_nbsd;
255 targ_extra_emuls="armelf_nbsd armelf armnbsd" ;;
3695c299 256arm-*-netbsdelf*) targ_emul=armelf_nbsd;
658f2588 257 targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;;
3695c299 258arm-*-netbsd*) targ_emul=armnbsd;
658f2588 259 targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd" ;;
ed71e111 260arm-*-nto*) targ_emul=armnto ;;
056a1d49 261arm-*-openbsd*) targ_emul=armnbsd ;;
24f6971a 262arm-*-rtems*) targ_emul=armelf ;;
d2012d17 263armeb-*-elf) targ_emul=armelfb ;;
4e7fd91e 264arm-*-elf | arm*-*-eabi*)
325fab4e 265 targ_emul=armelf ;;
e5a52504 266arm*-*-symbianelf*) targ_emul=armsymbian;;
42b5d0ea 267arm-*-kaos*) targ_emul=armelf ;;
45cf6f3e 268arm9e-*-elf) targ_emul=armelf ;;
a154a8ad 269arm*b-*-linux-gnueabi) targ_emul=armelfb_linux_eabi ;;
ed84e695 270arm*b-*-linux-*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
6b3221b4 271arm*-*-linux-gnueabi) targ_emul=armelf_linux_eabi ;;
ed84e695 272arm*-*-linux-*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
5fa803d3 273arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
4e7fd91e 274arm-*-vxworks) targ_emul=armelf_vxworks ;;
0decc840 275arm*-*-conix*) targ_emul=armelf ;;
ed84e695 276thumb-*-linux-* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
252b5132
RH
277strongarm-*-coff) targ_emul=armcoff ;;
278strongarm-*-elf) targ_emul=armelf ;;
42b5d0ea 279strongarm-*-kaos*) targ_emul=armelf ;;
252b5132
RH
280thumb-*-coff) targ_emul=armcoff ;;
281thumb-*-elf) targ_emul=armelf ;;
252b5132
RH
282thumb-epoc-pe) targ_emul=arm_epoc_pe ;
283 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
284thumb-*-pe) targ_emul=armpe ;
285 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
077b8428
NC
286xscale-*-coff) targ_emul=armcoff ;;
287xscale-*-elf) targ_emul=armelf ;;
009b6a7a 288h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
f4984206 289 targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn"
252b5132 290 ;;
009b6a7a 291h8300-*-elf* | h8300-*-rtems*)
8af6dd41 292 targ_emul=h8300elf;
f4984206 293 targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf"
8af6dd41 294 ;;
0b3a6a28 295h8500-*-hms* | h8500-*-coff* | h8500-*-rtems*)
252b5132
RH
296 targ_emul=h8500
297 targ_extra_emuls="h8500s h8500b h8500m h8500c"
298 ;;
4a428502 299sh-*-linux*)
3a9091c4
NC
300 targ_emul=shlelf_linux
301 targ_extra_emuls=shelf_linux
7649aa50
NC
302 targ_extra_libpath=shelf_linux
303 ;;
a2b3c630
SC
304sh64eb-*-linux*) targ_emul=shelf32_linux
305 targ_extra_emuls="shlelf32_linux"
306 ;;
307sh64-*-linux*) targ_emul=shlelf32_linux
308 targ_extra_emuls="shelf32_linux"
309 targ_extra_libpath=shelf32_linux
310 ;;
7649aa50
NC
311sh*eb-*-linux*)
312 targ_emul=shelf_linux
313 ;;
314sh*-*-linux*)
315 targ_emul=shlelf_linux
4a428502 316 ;;
5b0e55b6
JT
317sh5le-*-netbsd*)
318 targ_emul=shlelf32_nbsd
319 targ_extra_emuls="shelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd"
320 ;;
321sh5-*-netbsd*)
322 targ_emul=shelf32_nbsd
323 targ_extra_emuls="shlelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd"
324 ;;
325sh64le-*-netbsd*)
326 targ_emul=shlelf64_nbsd
327 targ_extra_emuls="shelf64_nbsd shelf32_nbsd shlelf32_nbsd shelf_nbsd shlelf_nbsd"
328 ;;
329sh64-*-netbsd*)
330 targ_emul=shelf64_nbsd
331 targ_extra_emuls="shlelf64_nbsd shelf32_nbsd shlelf32_nbsd shelf_nbsd shlelf_nbsd"
332 ;;
cea3d58d 333sh*l*-*-netbsdelf*)
8d05742f
JT
334 targ_emul=shlelf_nbsd
335 targ_extra_emuls=shelf_nbsd
336 ;;
337sh*-*-netbsdelf*)
338 targ_emul=shelf_nbsd
339 targ_extra_emuls=shlelf_nbsd
340 ;;
1a320fbb 341sh*-*-symbianelf*)
85fbca6a
NC
342 targ_emul=shlsymbian
343 ;;
42b5d0ea 344shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
7a33bc10
JR
345 targ_emul=shlelf
346 targ_extra_emuls="shelf shl sh"
347 ;;
9183ed4b
AM
348sh-*-rtemscoff*) targ_emul=sh; targ_extra_emuls=shl ;;
349sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos* | sh-*-vxworks)
de24ad21 350 targ_emul=shelf
252b5132
RH
351 targ_extra_emuls="shlelf sh shl"
352 ;;
ed71e111
NC
353sh-*-nto*) targ_emul=shelf_nto
354 targ_extra_emuls=shlelf_nto
355 ;;
344a211f
NC
356sh-*-pe) targ_emul=shpe ;
357 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
9183ed4b 358sh-*-*) targ_emul=sh; targ_extra_emuls=shl ;;
7a33bc10
JR
359sh64le-*-elf*)
360 targ_emul=shlelf
361 targ_extra_emuls="shelf shlelf32 shelf32 shlelf64 shelf64"
362 targ_extra_libpath=$targ_extra_emuls
363 ;;
2d92cb7d
AO
364sh64-*-elf*)
365 targ_emul=shelf
366 targ_extra_emuls="shlelf shelf32 shlelf32 shelf64 shlelf64"
367 targ_extra_libpath=$targ_extra_emuls
368 ;;
252b5132
RH
369m68k-sony-*) targ_emul=news ;;
370m68k-hp-bsd*) targ_emul=hp300bsd ;;
371m68*-motorola-sysv*) targ_emul=delta68 ;;
372m68*-*-aout) targ_emul=m68kaout ;;
373m68*-*-coff) targ_emul=m68kcoff ;;
374m68*-*-elf) targ_emul=m68kelf ;;
375m68*-*-hpux*) targ_emul=hp3hpux ;;
376m68k-*-linux*aout*) targ_emul=m68klinux
377 targ_extra_emuls=m68kelf
378 tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
379 ;;
ed84e695 380m68k-*-linux-*) targ_emul=m68kelf
252b5132
RH
381 targ_extra_emuls=m68klinux
382 tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
383 ;;
b50c15dc 384m68k-*-uclinux*) targ_emul=m68kelf ;;
252b5132 385m68*-*-gnu*) targ_emul=m68kelf ;;
0b69cd08
MG
386m68*-*-netbsd*4k*) targ_emul=m68k4knbsd
387 targ_extra_emuls="m68knbsd m68kelfnbsd" ;;
388m68*-*-netbsdelf*) targ_emul=m68kelfnbsd
389 targ_extra_emuls="m68knbsd m68k4knbsd" ;;
390m68*-*-netbsdaout* | m68*-*-netbsd*)
391 targ_emul=m68knbsd
392 targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
252b5132 393m68*-*-psos*) targ_emul=m68kpsos ;;
d43ded80
PB
394m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
395m68*-*-rtems*) targ_emul=m68kelf ;;
ed84e695 396hppa*64*-*-linux-*) targ_emul=hppa64linux ;;
0b76fe77 397hppa*64*-*) targ_emul=elf64hppa ;;
ed84e695 398hppa*-*-linux-*) targ_emul=hppalinux ;;
252b5132
RH
399hppa*-*-*elf*) targ_emul=hppaelf ;;
400hppa*-*-lites*) targ_emul=hppaelf ;;
006336b8 401hppa*-*-netbsd*) targ_emul=hppanbsd ;;
c29ef4b5 402hppa*-*-openbsd*) targ_emul=hppaobsd ;;
252b5132
RH
403hppa*-*-rtems*) targ_emul=hppaelf ;;
404vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
ab68f3e0
JT
405vax-*-netbsdelf*) targ_emul=elf32vax
406 targ_extra_emuls=vaxnbsd ;;
407vax-*-netbsdaout* | vax-*-netbsd*)
408 targ_emul=vaxnbsd
409 targ_extra_emuls=elf32vax ;;
ed84e695 410vax-*-linux-*) targ_emul=elf32vax ;;
344a211f
NC
411mips*-*-pe) targ_emul=mipspe ;
412 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
413mips*-dec-ultrix*) targ_emul=mipslit ;;
414mips*-dec-osf*) targ_emul=mipslit ;;
dc831978
MM
415mips*-sgi-irix5*) targ_emul=elf32bsmip ;;
416mips*-sgi-irix6*) targ_emul=elf32bmipn32
22c675a7 417 targ_extra_emuls="elf32bsmip elf64bmip"
728fa2f6 418 targ_extra_libpath=$targ_extra_emuls
dc831978 419 ;;
252b5132
RH
420mips*-sgi-irix*) targ_emul=mipsbig ;;
421mips*el-*-ecoff*) targ_emul=mipsidtl ;;
422mips*-*-ecoff*) targ_emul=mipsidt ;;
cf86e6df 423mips*el-*-netbsd*) targ_emul=elf32lmip
9fb9af6e
CD
424 targ_extra_emuls="elf32bmip"
425 ;;
426mips*-*-netbsd*) targ_emul=elf32bmip
427 targ_extra_emuls="elf32lmip"
428 ;;
252b5132
RH
429mips*-*-bsd*) targ_emul=mipsbig ;;
430mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
431mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
432mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
433mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
434mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
435mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
436mips*el-*-elf*) targ_emul=elf32elmip ;;
437mips*-*-elf*) targ_emul=elf32ebmip ;;
de24ad21 438mips*el-*-rtems*) targ_emul=elf32elmip ;;
252b5132 439mips*-*-rtems*) targ_emul=elf32ebmip ;;
41d390a7 440mips*el-*-vxworks*) targ_emul=elf32elmip ;;
325fab4e
NC
441mips*-*-vxworks*) targ_emul=elf32ebmip
442 targ_extra_emuls="elf32elmip" ;;
443mips*-*-windiss) targ_emul=elf32mipswindiss ;;
ed84e695 444mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
7808a785 445 targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
1c7c5e5b 446 targ_extra_libpath="elf32ltsmip elf64ltsmip"
7808a785 447 ;;
ed84e695 448mips64*-*-linux-*) targ_emul=elf32btsmipn32
7808a785 449 targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
1c7c5e5b 450 targ_extra_libpath="elf32btsmip elf64btsmip"
7808a785 451 ;;
ed84e695 452mips*el-*-linux-*) targ_emul=elf32ltsmip
e9229007 453 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
252b5132 454 ;;
ed84e695 455mips*-*-linux-*) targ_emul=elf32btsmip
e9229007 456 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
252b5132
RH
457 ;;
458mips*-*-lnews*) targ_emul=mipslnews ;;
3548145d 459mips*-*-sysv4*) targ_emul=elf32btsmip ;;
3c3bdf30
NC
460mmix-*-*) targ_emul=mmo
461 targ_extra_emuls=elf64mmix
462 ;;
252b5132
RH
463mn10200-*-*) targ_emul=mn10200 ;;
464mn10300-*-*) targ_emul=mn10300 ;;
3b260895 465msp430-*-*) targ_emul=msp430x110
c05e9f04 466 targ_extra_emuls="msp430x112 msp430x1101 msp430x1111 msp430x1121 msp430x1122 msp430x1132 msp430x122 msp430x123 msp430x1222 msp430x1232 msp430x133 msp430x135 msp430x1331 msp430x1351 msp430x147 msp430x148 msp430x149 msp430x155 msp430x156 msp430x157 msp430x167 msp430x168 msp430x169 msp430x1610 msp430x1611 msp430x1612 msp430x311 msp430x312 msp430x313 msp430x314 msp430x315 msp430x323 msp430x325 msp430x336 msp430x337 msp430x412 msp430x413 msp430x415 msp430x417 msp430xE423 msp430xE425 msp430xE427 msp430xW423 msp430xW425 msp430xW427 msp430xG437 msp430xG438 msp430xG439 msp430x435 msp430x436 msp430x437 msp430x447 msp430x448 msp430x449" ;;
13dfd2d0
NC
467alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
468 targ_emul=elf64alpha_fbsd
ac3e50bf 469 targ_extra_emuls="elf64alpha alpha"
fb33b906
DB
470 tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'`
471 ;;
252b5132
RH
472alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
473 tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
474 ;;
ed84e695 475alpha*-*-linux-*) targ_emul=elf64alpha targ_extra_emuls=alpha
252b5132
RH
476 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
477 ;;
478alpha*-*-osf*) targ_emul=alpha ;;
479alpha*-*-gnu*) targ_emul=elf64alpha ;;
480alpha*-*-netware*) targ_emul=alpha ;;
fc18a3f3 481alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd ;;
c29ef4b5 482alpha*-*-openbsd*) targ_emul=elf64alpha ;;
252b5132
RH
483z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
484ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
aa501e5c 485ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
c7e40348 486openrisc-*-*) targ_emul=elf32openrisc ;;
3b16e843
NC
487or32-*-coff) targ_emul=or32 ;;
488or32-*-elf) targ_emul=or32elf ;;
4b363073 489or32-*-rtems*) targ_emul=or32elf ;;
5c67d4bb
AM
490pdp11-*-*) targ_emul=pdp11 ;;
491pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;;
492pj*-*-*) targ_emul=pjelf ;;
13dfd2d0
NC
493powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
494 targ_emul=elf32ppc_fbsd;
ac3e50bf 495 targ_extra_emuls="elf32ppc elf32ppcsim";
fb33b906
DB
496 targ_extra_libpath=elf32ppc;
497 tdir_elf32ppcsim=`echo ${targ_alias} | sed -e 's/ppc/ppcsim/'`
498 ;;
5c67d4bb
AM
499powerpc*-*-linux*)
500 case "${targ}" in
501 *64*) targ_emul=elf64ppc
eb3d6bb8 502 targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim"
276e5094 503 targ_extra_libpath="elf32ppclinux elf32ppc"
eb3d6bb8
AM
504 tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
505 tdir_elf32ppclinux=$tdir_elf32ppc
506 tdir_elf32ppcsim=$tdir_elf32ppc ;;
5c67d4bb
AM
507 *) targ_emul=elf32ppclinux
508 targ_extra_emuls="elf32ppc elf32ppcsim"
ebc6e014
L
509 targ_extra_libpath=elf32ppc
510 if test "${want64}" = "true"; then
511 targ_extra_emuls="$targ_extra_emuls elf64ppc"
276e5094 512 targ_extra_libpath="$targ_extra_libpath elf64ppc"
ebc6e014
L
513 fi
514 ;;
5c67d4bb
AM
515 esac ;;
516powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \
517 | powerpc*le-*-sysv* | powerpc*le-*-vxworks*)
518 case "${targ}" in
519 *64*) targ_emul=elf64lppc
eb3d6bb8
AM
520 targ_extra_emuls="elf32lppc elf32lppcsim"
521 tdir_elf32lppc=`echo "${targ_alias}" | sed -e 's/64//'`
522 tdir_elf32lppcsim=$tdir_elf32lppc ;;
5c67d4bb
AM
523 *) targ_emul=elf32lppc
524 targ_extra_emuls="elf32ppcsim" ;;
525 esac ;;
526powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
42b5d0ea 527 | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-vxworks* | powerpc*-*-kaos*)
5c67d4bb
AM
528 case "${targ}" in
529 *64*) targ_emul=elf64ppc
eb3d6bb8
AM
530 targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
531 tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
532 tdir_elf32ppclinux=$tdir_elf32ppc
533 tdir_elf32ppcsim=$tdir_elf32ppc ;;
5c67d4bb
AM
534 *) targ_emul=elf32ppc
535 targ_extra_emuls="elf32ppclinux elf32ppcsim" ;;
536 esac ;;
59bc061d
NC
537powerpc-*-nto*) targ_emul=elf32ppcnto ;;
538powerpcle-*-nto*) targ_emul=elf32lppcnto ;;
de24ad21 539powerpcle-*-rtems*) targ_emul=elf32leppc ;;
252b5132
RH
540powerpc-*-rtems*) targ_emul=elf32ppc ;;
541powerpc-*-macos*) targ_emul=ppcmacos ;;
542powerpc-*-netware*) targ_emul=ppcnw ;;
543powerpcle-*-pe) targ_emul=ppcpe ;;
544powerpcle-*-winnt*) targ_emul=ppcpe ;;
3b1b01cf 545powerpcle-*-cygwin*) targ_emul=ppcpe ;;
eb1e0e80 546powerpc-*-aix5*) targ_emul=aix5ppc ;;
742aeb63 547powerpc-*-aix*) targ_emul=aixppc ;;
252b5132 548powerpc-*-beos*) targ_emul=aixppc ;;
94349e12 549powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
b2d65c0b 550powerpc-*-lynxos*) targ_emul=ppclynx ;;
eb1e0e80 551rs6000-*-aix5*) targ_emul=aix5rs6 ;;
252b5132
RH
552rs6000-*-aix*) targ_emul=aixrs6 ;;
553tic30-*-*aout*) targ_emul=tic30aout ;;
9f863369
SS
554tic30-*-*coff*) targ_emul=tic30coff ;;
555tic4x-*-* | c4x-*-*) targ_emul=tic4xcoff ; targ_extra_emuls="tic3xcoff tic3xcoff_onchip" ;;
74459f0e 556tic54x-*-* | c54x*-*-*) targ_emul=tic54xcoff ;;
252b5132
RH
557tic80-*-*) targ_emul=tic80coff ;;
558v850-*-*) targ_emul=v850 ;;
559v850e-*-*) targ_emul=v850 ;;
560v850ea-*-*) targ_emul=v850 ;;
e09a7106 561iq2000-*-elf) targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" ;;
005e1118
AO
562frv-*-*linux*) targ_emul=elf32frvfd ;;
563frv-*-*) targ_emul=elf32frv ; targ_extra_emuls="elf32frvfd" ;;
252b5132 564w65-*-*) targ_emul=w65 ;;
93fbbb04 565xstormy16-*-*) targ_emul=elf32xstormy16 ;;
e0001a05 566xtensa-*-*) targ_emul=elf32xtensa;;
252b5132 567fr30-*-*) targ_emul=elf32fr30 ;;
71acc4e8
NC
568mcore-*-pe) targ_emul=mcorepe ;
569 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
570mcore-*-elf) targ_emul=elf32mcore ;;
f52d1d64
JJ
571s390x-*-linux*) targ_emul=elf64_s390
572 targ_extra_emuls=elf_s390
573 targ_extra_libpath=$targ_extra_emuls
574 tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
2fbd2a87
NC
575s390x-*-tpf*) targ_emul=elf64_s390
576 tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
f52d1d64
JJ
577s390-*-linux*) targ_emul=elf_s390
578 if test "${want64}" = "true"; then
579 targ_extra_emuls=elf64_s390
580 targ_extra_libpath=$targ_extra_emuls
581 tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
582 fi ;;
252b5132 583*-*-ieee*) targ_emul=vanilla ;;
cf88bb9f 584ip2k-*-elf) targ_emul=elf32ip2k ;;
252b5132
RH
585
586*)
587 echo 2>&1 "*** ld does not support target ${targ}"
588 echo 2>&1 "*** see ld/configure.tgt for supported targets"
589 exit 1
590
591esac
9c8ebd6a
DJ
592
593NATIVE_LIB_DIRS='/usr/local/lib /lib /usr/lib'
594case "${target}" in
595
596*-*-freebsd*)
597 NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib'
598 ;;
599
600hppa*64*-*-hpux11*)
601 NATIVE_LIB_DIRS=/usr/lib/pa20_64
602 ;;
603
80c7c40a 604i[3-7]86-*-sysv4*)
9c8ebd6a
DJ
605 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
606 ;;
607
80c7c40a 608i[3-7]86-*-solaris*)
9c8ebd6a
DJ
609 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
610 ;;
611
80c7c40a 612i[3-7]86-pc-interix*)
9c8ebd6a
DJ
613 NATIVE_LIB_DIRS='/usr/local/lib $$INTERIX_ROOT/usr/lib /lib /usr/lib'
614 ;;
615
616ia64-*-aix*)
617 NATIVE_LIB_DIRS='/usr/local/lib /usr/lib/ia64l64 /lib /usr/lib'
618 ;;
619
620sparc*-*-solaris2*)
621 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
622 ;;
623
d55b850c
CF
624i[03-9x]86-*-cygwin*)
625 NATIVE_LIB_DIRS='/usr/lib /usr/lib/w32api'
626 ;;
627
9c8ebd6a
DJ
628*-*-linux*)
629 ;;
630
631*-*-freebsd*)
632 ;;
633
634*-*-netbsd*)
635 ;;
636
637alpha*-*-*)
638 NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
639 ;;
640
641esac
This page took 0.314355 seconds and 4 git commands to generate.