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