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