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