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