]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure.tgt
* config.bfd: Add NetBSD/sparc64 support.
[thirdparty/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
RH
11# targ_extra_ofiles additional objects needed by the emulation
12
13targ_extra_emuls=
14targ_extra_ofiles=
15
16case "${targ}" in
17arm-epoc-pe) targ_emul=arm_epoc_pe ;
18 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
344a211f
NC
19arm-*-wince) targ_emul=armpe ;
20 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
21arm-*-pe) targ_emul=armpe ;
22 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
23arc-*-elf*) targ_emul=arcelf ;;
adde6300
AM
24avr-*-*) targ_emul=avr85xx
25 targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161" ;;
252b5132
RH
26d10v-*-*) targ_emul=d10velf ;;
27d30v-*-*ext*) targ_emul=d30v_e; targ_extra_emuls="d30velf d30v_o" ;;
28d30v-*-*onchip*) targ_emul=d30v_o; targ_extra_emuls="d30velf d30v_e" ;;
29d30v-*-*) targ_emul=d30velf; targ_extra_emuls="d30v_e d30v_o" ;;
30sparc64-*-aout*) targ_emul=sparcaout ;;
31sparc64-*-elf*) targ_emul=elf64_sparc ;;
32sparc-sun-sunos4*) targ_emul=sun4 ;;
33sparclite*-*-elf) targ_emul=elf32_sparc ;;
34sparclite*-*-coff) targ_emul=coff_sparc ;;
35sparclite*-fujitsu-*) targ_emul=sparcaout ;;
36sparc*-*-aout) targ_emul=sparcaout ;;
37sparc*-*-coff) targ_emul=coff_sparc ;;
38sparc*-*-elf) targ_emul=elf32_sparc ;;
39sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
40sparc*-*-linux*aout*) targ_emul=sparclinux
41 targ_extra_emuls="elf32_sparc sun4"
42 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
43 tdir_sun4=sparc-sun-sunos4
44 ;;
45sparc64-*-linux-gnu*) targ_emul=elf64_sparc
46 targ_extra_emuls="elf32_sparc sparclinux sun4"
47 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
48 tdir_sparclinux=${tdir_elf32_sparc}aout
49 tdir_sun4=sparc-sun-sunos4
50 ;;
51sparc*-*-linux-gnu*) targ_emul=elf32_sparc
ad51fb57 52 targ_extra_emuls="sparclinux elf64_sparc sun4"
252b5132 53 tdir_sparclinux=${targ_alias}aout
ad51fb57 54 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
252b5132
RH
55 tdir_sun4=sparc-sun-sunos4
56 ;;
57sparc*-*-lynxos*) targ_emul=sparclynx ;;
58sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
a1836d49
AO
59sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
60 targ_emul=elf32_sparc ;;
61sparc-*-solaris2*) targ_emul=elf32_sparc
62 targ_extra_emuls="elf64_sparc"
63 targ_extra_libpath=$targ_extra_emuls
64 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
65 ;;
66sparcv9-*-solaris2* | sparc64-*-solaris2*)
67 targ_emul=elf64_sparc
68 targ_extra_emuls="elf32_sparc"
69 targ_extra_libpath=$targ_extra_emuls
70 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
71 ;;
252b5132
RH
72sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
73sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
74sparc*-*-rtems*) targ_emul=sparcaout ;;
75i960-wrs-vxworks5.0*) targ_emul=gld960 ;;
76i960-wrs-vxworks5*) targ_emul=gld960coff ;;
77i960-wrs-vxworks*) targ_emul=gld960 ;;
78i960-*-coff) targ_emul=gld960coff ;;
79i960-intel-nindy) targ_emul=gld960 ;;
80i960-*-rtems*) targ_emul=gld960coff ;;
0ccf812a 81i960-*-elf*) targ_emul=elf32_i960 ;;
800eeca4
JW
82ia64-*-elf*) targ_emul=elf64_ia64 ;;
83ia64-*-linux*) targ_emul=elf64_ia64 ;;
252b5132
RH
84m32r-*-*) targ_emul=m32relf ;;
85m68*-sun-sunos[34]*) targ_emul=sun3 ;;
86m68*-wrs-vxworks*) targ_emul=sun3 ;;
87m68*-ericsson-ose) targ_emul=sun3 ;;
88m68*-apple-aux*) targ_emul=m68kaux ;;
89*-tandem-none) targ_emul=st2000 ;;
5b93d8bb
AM
90i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
91i370-*-mvs*) targ_emul=mvs ;;
252b5132
RH
92i[3456]86-*-vsta) targ_emul=vsta ;;
93i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
94i[3456]86-*-go32) targ_emul=i386go32 ;;
95i[3456]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
96i[3456]86-*-aix*) targ_emul=i386coff ;;
97i[3456]86-*-sco*) targ_emul=i386coff ;;
98i[3456]86-*-isc*) targ_emul=i386coff ;;
99i[3456]86-*-lynxos*) targ_emul=i386lynx ;;
100i[3456]86-*-coff) targ_emul=i386coff ;;
de24ad21 101i[3456]86-*-rtemself*) targ_emul=elf_i386 ;;
252b5132
RH
102i[3456]86-*-rtems*) targ_emul=i386coff ;;
103i[3456]86-*-bsd) targ_emul=i386bsd ;;
104i[3456]86-*-bsd386) targ_emul=i386bsd ;;
105i[3456]86-*-bsdi*) targ_emul=i386bsd ;;
106i[3456]86-*-aout) targ_emul=i386aout ;;
107i[3456]86-*-linux*aout*) targ_emul=i386linux
108 targ_extra_emuls=elf_i386
109 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
110 ;;
111i[3456]86-*-linuxoldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
112i[3456]86-*-linux-gnu*) targ_emul=elf_i386
113 targ_extra_emuls=i386linux
114 tdir_i386linux=${targ_alias}aout
115 ;;
116i[3456]86-*-sysv4*) targ_emul=elf_i386 ;;
117i[3456]86-*-solaris2*) targ_emul=elf_i386 ;;
118i[3456]86-*-unixware) targ_emul=elf_i386 ;;
119i[3456]86-*-solaris*) targ_emul=elf_i386 ;;
120i[3456]86-*-netbsd*) targ_emul=i386nbsd ;;
121i[3456]86-*-netware) targ_emul=i386nw ;;
122i[3456]86-*-elf*) targ_emul=elf_i386 ;;
2641b0c9
ILT
123i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])
124 targ_emul=i386bsd ;;
125i[3456]86-*-freebsd*) targ_emul=elf_i386 ;;
252b5132
RH
126i[3456]86-*-sysv*) targ_emul=i386coff ;;
127i[3456]86-*-ptx*) targ_emul=i386coff ;;
128i[3456]86-*-mach*) targ_emul=i386mach ;;
129i[3456]86-*-gnu*) targ_emul=elf_i386 ;;
130i[3456]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;;
131i[3456]86-*-moss*) targ_emul=i386moss; targ_extra_emuls=i386msdos ;;
132i[3456]86-*-winnt*) targ_emul=i386pe ;
133 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
134i[3456]86-*-pe) targ_emul=i386pe ;
135 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
136i[3456]86-*-cygwin*) targ_emul=i386pe ;
137 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
138i[3456]86-*-mingw32*) targ_emul=i386pe ;
139 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
a7e78dae
ILT
140i[3456]86-*-interix*) targ_emul=i386pe_posix;
141 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
142i[3456]86-*-beospe*) targ_emul=i386beos ;;
143i[3456]86-*-beos*) targ_emul=elf_i386_be ;;
41d390a7 144i[3456]86-*-vxworks*) targ_emul=i386aout ;;
252b5132
RH
145m8*-*-*) targ_emul=m88kbcs ;;
146a29k-*-udi) targ_emul=sa29200 ;;
147a29k-*-ebmon) targ_emul=ebmon29k ;;
148a29k-*-*) targ_emul=a29k ;;
149# arm-*-riscix*) targ_emul=riscix ;;
150arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
151armeb-*-aout) targ_emul=armaoutb ;;
152arm-*-coff) targ_emul=armcoff ;;
8959586a 153arm-*-netbsd*) targ_emul=armnbsd ;;
252b5132 154arm-*-elf) targ_emul=armelf ;;
5fa803d3
NC
155arm-*-oabi) targ_emul=armelf_oabi ;;
156arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls="armelf_linux26 armelf" ;;
157arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
0decc840 158arm*-*-conix*) targ_emul=armelf ;;
5fa803d3 159thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
252b5132
RH
160strongarm-*-coff) targ_emul=armcoff ;;
161strongarm-*-elf) targ_emul=armelf ;;
162thumb-*-coff) targ_emul=armcoff ;;
163thumb-*-elf) targ_emul=armelf ;;
164thumb-*-oabi) targ_emul=armelf_oabi ;;
165thumb-epoc-pe) targ_emul=arm_epoc_pe ;
166 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
167thumb-*-pe) targ_emul=armpe ;
168 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
169h8300-*-hms* | h8300-*-coff*)
170 targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
171 ;;
172h8500-*-hms* | h8500-*-coff*)
173 targ_emul=h8500
174 targ_extra_emuls="h8500s h8500b h8500m h8500c"
175 ;;
de24ad21
RH
176sh-*-elf* | sh-*-rtemself*)
177 targ_emul=shelf
252b5132
RH
178 targ_extra_emuls="shlelf sh shl"
179 ;;
344a211f
NC
180sh-*-pe) targ_emul=shpe ;
181 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
182sh-*-*|sh-*-rtems*) targ_emul=sh; targ_extra_emuls=shl ;;
183m68k-sony-*) targ_emul=news ;;
184m68k-hp-bsd*) targ_emul=hp300bsd ;;
185m68*-motorola-sysv*) targ_emul=delta68 ;;
186m68*-*-aout) targ_emul=m68kaout ;;
187m68*-*-coff) targ_emul=m68kcoff ;;
188m68*-*-elf) targ_emul=m68kelf ;;
189m68*-*-hpux*) targ_emul=hp3hpux ;;
190m68k-*-linux*aout*) targ_emul=m68klinux
191 targ_extra_emuls=m68kelf
192 tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
193 ;;
194m68k-*-linux-gnu*) targ_emul=m68kelf
195 targ_extra_emuls=m68klinux
196 tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
197 ;;
198m68*-*-gnu*) targ_emul=m68kelf ;;
199m68*-*-lynxos*) targ_emul=m68klynx ;;
200m68*-hp*-netbsd*) targ_emul=m68k4knbsd ;;
201m68*-*-netbsd*) targ_emul=m68knbsd ;;
202m68*-*-psos*) targ_emul=m68kpsos ;;
203m68*-*-rtems*) targ_emul=m68kcoff ;;
f6e143a1 204hppa*w*-*) targ_emul=elf64hppa ;;
252b5132 205hppa*-*-*elf*) targ_emul=hppaelf ;;
5c61c5ab 206hppa*-*-linux-gnu*) targ_emul=hppaelf ;;
252b5132
RH
207hppa*-*-lites*) targ_emul=hppaelf ;;
208hppa*-*-rtems*) targ_emul=hppaelf ;;
209vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
344a211f
NC
210mips*-*-pe) targ_emul=mipspe ;
211 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
212mips*-dec-ultrix*) targ_emul=mipslit ;;
213mips*-dec-osf*) targ_emul=mipslit ;;
dc831978
MM
214mips*-sgi-irix5*) targ_emul=elf32bsmip ;;
215mips*-sgi-irix6*) targ_emul=elf32bmipn32
22c675a7 216 targ_extra_emuls="elf32bsmip elf64bmip"
dc831978 217 ;;
252b5132
RH
218mips*-sgi-irix*) targ_emul=mipsbig ;;
219mips*el-*-ecoff*) targ_emul=mipsidtl ;;
220mips*-*-ecoff*) targ_emul=mipsidt ;;
221mips*-dec-bsd*) targ_emul=mipsbsd ;;
222mips*-dec-netbsd*) targ_emul=elf32lmip ;;
223mips*-*-bsd*) targ_emul=mipsbig ;;
224mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
225mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
226mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
227mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
228mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
229mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
230mips*el-*-elf*) targ_emul=elf32elmip ;;
231mips*-*-elf*) targ_emul=elf32ebmip ;;
de24ad21 232mips*el-*-rtems*) targ_emul=elf32elmip ;;
252b5132 233mips*-*-rtems*) targ_emul=elf32ebmip ;;
41d390a7 234mips*el-*-vxworks*) targ_emul=elf32elmip ;;
252b5132
RH
235mips*-*-vxworks*) targ_emul=elf32ebmip ;;
236mips*el-*-linux-gnu*) targ_emul=elf32lsmip
237 targ_extra_emuls="elf32bsmip mipslit mipsbig"
238 ;;
239mips*-*-linux-gnu*) targ_emul=elf32bsmip
240 targ_extra_emuls="elf32lsmip mipsbig mipslit"
241 ;;
242mips*-*-lnews*) targ_emul=mipslnews ;;
243mn10200-*-*) targ_emul=mn10200 ;;
244mn10300-*-*) targ_emul=mn10300 ;;
245alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
246 tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
247 ;;
248alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
249 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
250 ;;
251alpha*-*-osf*) targ_emul=alpha ;;
252alpha*-*-gnu*) targ_emul=elf64alpha ;;
253alpha*-*-netware*) targ_emul=alpha ;;
254alpha*-*-netbsd*) targ_emul=elf64alpha ;;
255z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
256ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
257ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
bdbe5705
GK
258powerpc-*-linux-gnu*) targ_emul=elf32ppclinux;
259 targ_extra_emuls="elf32ppc elf32ppcsim";
3336653a 260 targ_extra_libpath=elf32ppc ;;
c6c8c6dc
ILT
261pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;;
262pj*-*-*) targ_emul=pjelf ;;
ec2f040d 263powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-sysv* \
252b5132 264 | powerpc-*-netbsd* | powerpc-*-vxworks*)
bdbe5705 265 targ_emul=elf32ppc targ_extra_emuls="elf32ppclinux elf32ppcsim";;
252b5132
RH
266powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* \
267 | powerpcle-*-sysv* | powerpcle-*-vxworks*)
bdbe5705 268 targ_emul=elf32lppc targ_extra_emuls="elf32ppcsim";;
de24ad21 269powerpcle-*-rtems*) targ_emul=elf32leppc ;;
252b5132
RH
270powerpc-*-rtems*) targ_emul=elf32ppc ;;
271powerpc-*-macos*) targ_emul=ppcmacos ;;
272powerpc-*-netware*) targ_emul=ppcnw ;;
273powerpcle-*-pe) targ_emul=ppcpe ;;
274powerpcle-*-winnt*) targ_emul=ppcpe ;;
275powerpcle-*-cygwin*) targ_emul=ppcpe ;;
276powerpc-*-aix*) targ_emul=aixppc ;;
277powerpc-*-beos*) targ_emul=aixppc ;;
278rs6000-*-aix*) targ_emul=aixrs6 ;;
279tic30-*-*aout*) targ_emul=tic30aout ;;
280tic30-*-*coff*) targ_emul=tic30coff ;;
281tic80-*-*) targ_emul=tic80coff ;;
282v850-*-*) targ_emul=v850 ;;
283v850e-*-*) targ_emul=v850 ;;
284v850ea-*-*) targ_emul=v850 ;;
285w65-*-*) targ_emul=w65 ;;
286fr30-*-*) targ_emul=elf32fr30 ;;
71acc4e8
NC
287mcore-*-pe) targ_emul=mcorepe ;
288 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
289mcore-*-elf) targ_emul=elf32mcore ;;
252b5132
RH
290*-*-ieee*) targ_emul=vanilla ;;
291
292*)
293 echo 2>&1 "*** ld does not support target ${targ}"
294 echo 2>&1 "*** see ld/configure.tgt for supported targets"
295 exit 1
296
297esac