Commit | Line | Data |
---|---|---|
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 | ||
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" ;; | |
344a211f NC |
19 | arm-*-wince) targ_emul=armpe ; |
20 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
252b5132 RH |
21 | arm-*-pe) targ_emul=armpe ; |
22 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
23 | arc-*-elf*) targ_emul=arcelf ;; | |
adde6300 | 24 | avr-*-*) targ_emul=avr85xx |
fae1e84f | 25 | targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161 avr1 avr2 avr3 avr4 avr5" ;; |
1268a053 | 26 | cris-*-*aout*) targ_emul=crisaout |
9d06555c HPN |
27 | targ_extra_emuls="criself crislinux" |
28 | targ_extra_libpath=$targ_extra_emuls ;; | |
1268a053 HPN |
29 | cris-*-*) targ_emul=criself |
30 | targ_extra_emuls="crisaout crislinux" | |
31 | targ_extra_libpath=$targ_extra_emuls ;; | |
252b5132 RH |
32 | d10v-*-*) targ_emul=d10velf ;; |
33 | d30v-*-*ext*) targ_emul=d30v_e; targ_extra_emuls="d30velf d30v_o" ;; | |
34 | d30v-*-*onchip*) targ_emul=d30v_o; targ_extra_emuls="d30velf d30v_e" ;; | |
35 | d30v-*-*) targ_emul=d30velf; targ_extra_emuls="d30v_e d30v_o" ;; | |
d172d4ba | 36 | dlx-*-elf*) targ_emul=elf32_dlx ;; |
252b5132 RH |
37 | sparc64-*-aout*) targ_emul=sparcaout ;; |
38 | sparc64-*-elf*) targ_emul=elf64_sparc ;; | |
39 | sparc-sun-sunos4*) targ_emul=sun4 ;; | |
40 | sparclite*-*-elf) targ_emul=elf32_sparc ;; | |
41 | sparclite*-*-coff) targ_emul=coff_sparc ;; | |
42 | sparclite*-fujitsu-*) targ_emul=sparcaout ;; | |
43 | sparc*-*-aout) targ_emul=sparcaout ;; | |
44 | sparc*-*-coff) targ_emul=coff_sparc ;; | |
45 | sparc*-*-elf) targ_emul=elf32_sparc ;; | |
46 | sparc*-*-sysv4*) targ_emul=elf32_sparc ;; | |
fb33b906 | 47 | sparc64-*-freebsd* | sparcv9-*-freebsd*) |
ac3e50bf DB |
48 | targ_emul=elf64_sparc_fbsd |
49 | targ_extra_emuls="elf64_sparc elf32_sparc" | |
fb33b906 DB |
50 | targ_extra_libpath=$targ_extra_emuls |
51 | tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` | |
52 | ;; | |
252b5132 RH |
53 | sparc*-*-linux*aout*) targ_emul=sparclinux |
54 | targ_extra_emuls="elf32_sparc sun4" | |
55 | tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'` | |
56 | tdir_sun4=sparc-sun-sunos4 | |
57 | ;; | |
58 | sparc64-*-linux-gnu*) targ_emul=elf64_sparc | |
59 | targ_extra_emuls="elf32_sparc sparclinux sun4" | |
780248c4 | 60 | targ_extra_libpath=elf32_sparc |
252b5132 RH |
61 | tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` |
62 | tdir_sparclinux=${tdir_elf32_sparc}aout | |
63 | tdir_sun4=sparc-sun-sunos4 | |
64 | ;; | |
65 | sparc*-*-linux-gnu*) targ_emul=elf32_sparc | |
ad51fb57 | 66 | targ_extra_emuls="sparclinux elf64_sparc sun4" |
780248c4 | 67 | targ_extra_libpath=elf64_sparc |
252b5132 | 68 | tdir_sparclinux=${targ_alias}aout |
ad51fb57 | 69 | tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'` |
252b5132 RH |
70 | tdir_sun4=sparc-sun-sunos4 |
71 | ;; | |
72 | sparc*-*-lynxos*) targ_emul=sparclynx ;; | |
cf86e6df AM |
73 | sparc64-*-netbsd*) targ_emul=elf64_sparc |
74 | targ_extra_emuls="elf32_sparc" | |
75 | ;; | |
d8475ff6 | 76 | sparc*-*-netbsd*elf*) targ_emul=elf32_sparc ;; |
252b5132 | 77 | sparc*-*-netbsd*) targ_emul=sparcnbsd ;; |
a1836d49 AO |
78 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
79 | targ_emul=elf32_sparc ;; | |
80 | sparc-*-solaris2*) targ_emul=elf32_sparc | |
81 | targ_extra_emuls="elf64_sparc" | |
82 | targ_extra_libpath=$targ_extra_emuls | |
83 | tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'` | |
84 | ;; | |
85 | sparcv9-*-solaris2* | sparc64-*-solaris2*) | |
86 | targ_emul=elf64_sparc | |
87 | targ_extra_emuls="elf32_sparc" | |
88 | targ_extra_libpath=$targ_extra_emuls | |
89 | tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` | |
90 | ;; | |
252b5132 RH |
91 | sparc*-*-solaris2*) targ_emul=elf32_sparc ;; |
92 | sparc*-wrs-vxworks*) targ_emul=sparcaout ;; | |
24f6971a NC |
93 | sparc*-*-rtemsaout*) targ_emul=sparcaout ;; |
94 | sparc*-*-rtemself*) targ_emul=elf32_sparc ;; | |
95 | sparc*-*-rtems*) targ_emul=elf32_sparc ;; | |
165589e4 JE |
96 | i860-stardent-sysv4* | i860-stardent-elf*) |
97 | targ_emul=elf32_i860 ;; | |
252b5132 RH |
98 | i960-wrs-vxworks5.0*) targ_emul=gld960 ;; |
99 | i960-wrs-vxworks5*) targ_emul=gld960coff ;; | |
100 | i960-wrs-vxworks*) targ_emul=gld960 ;; | |
101 | i960-*-coff) targ_emul=gld960coff ;; | |
102 | i960-intel-nindy) targ_emul=gld960 ;; | |
103 | i960-*-rtems*) targ_emul=gld960coff ;; | |
0ccf812a | 104 | i960-*-elf*) targ_emul=elf32_i960 ;; |
800eeca4 | 105 | ia64-*-elf*) targ_emul=elf64_ia64 ;; |
ac3e50bf DB |
106 | ia64-*-freebsd*) targ_emul=elf64_ia64_fbsd |
107 | targ_extra_emuls="elf64_ia64" ;; | |
9596feea | 108 | ia64-*-netbsd*) targ_emul=elf64_ia64 ;; |
800eeca4 | 109 | ia64-*-linux*) targ_emul=elf64_ia64 ;; |
41c49998 | 110 | ia64-*-aix*) targ_emul=elf64_aix ;; |
252b5132 | 111 | m32r-*-*) targ_emul=m32relf ;; |
60bcf0fa NC |
112 | m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf |
113 | targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;; | |
114 | m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf | |
115 | targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb" ;; | |
252b5132 RH |
116 | m68*-sun-sunos[34]*) targ_emul=sun3 ;; |
117 | m68*-wrs-vxworks*) targ_emul=sun3 ;; | |
118 | m68*-ericsson-ose) targ_emul=sun3 ;; | |
119 | m68*-apple-aux*) targ_emul=m68kaux ;; | |
120 | *-tandem-none) targ_emul=st2000 ;; | |
5b93d8bb | 121 | i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;; |
252b5132 RH |
122 | i[3456]86-*-vsta) targ_emul=vsta ;; |
123 | i[3456]86-go32-rtems*) targ_emul=i386go32 ;; | |
124 | i[3456]86-*-go32) targ_emul=i386go32 ;; | |
125 | i[3456]86-*-msdosdjgpp*) targ_emul=i386go32 ;; | |
126 | i[3456]86-*-aix*) targ_emul=i386coff ;; | |
127 | i[3456]86-*-sco*) targ_emul=i386coff ;; | |
128 | i[3456]86-*-isc*) targ_emul=i386coff ;; | |
129 | i[3456]86-*-lynxos*) targ_emul=i386lynx ;; | |
130 | i[3456]86-*-coff) targ_emul=i386coff ;; | |
d43ded80 | 131 | i[3456]86-*-rtemscoff*) targ_emul=i386coff ;; |
de24ad21 | 132 | i[3456]86-*-rtemself*) targ_emul=elf_i386 ;; |
d43ded80 | 133 | i[3456]86-*-rtems*) targ_emul=elf_i386 ;; |
252b5132 RH |
134 | i[3456]86-*-bsd) targ_emul=i386bsd ;; |
135 | i[3456]86-*-bsd386) targ_emul=i386bsd ;; | |
136 | i[3456]86-*-bsdi*) targ_emul=i386bsd ;; | |
137 | i[3456]86-*-aout) targ_emul=i386aout ;; | |
138 | i[3456]86-*-linux*aout*) targ_emul=i386linux | |
139 | targ_extra_emuls=elf_i386 | |
140 | tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` | |
141 | ;; | |
c709b096 | 142 | i[3456]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;; |
252b5132 RH |
143 | i[3456]86-*-linux-gnu*) targ_emul=elf_i386 |
144 | targ_extra_emuls=i386linux | |
145 | tdir_i386linux=${targ_alias}aout | |
146 | ;; | |
2be3aa03 NC |
147 | x86_64-*-linux-gnu*) targ_emul=elf_x86_64 |
148 | targ_extra_emuls="elf_i386 i386linux" | |
beb43bb9 JH |
149 | targ_extra_libpath=elf_i386 |
150 | tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'` | |
151 | tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` | |
2be3aa03 | 152 | ;; |
28423a68 | 153 | i[3456]86-*-sysv[45]*) targ_emul=elf_i386 ;; |
506eee22 NC |
154 | i[3456]86-*-solaris2*) targ_emul=elf_i386_ldso |
155 | targ_extra_emuls="elf_i386" | |
156 | ;; | |
252b5132 | 157 | i[3456]86-*-unixware) targ_emul=elf_i386 ;; |
506eee22 NC |
158 | i[3456]86-*-solaris*) targ_emul=elf_i386_ldso |
159 | targ_extra_emuls="elf_i386" | |
160 | ;; | |
9ffecff1 MG |
161 | i[3456]86-*-netbsdelf*) targ_emul=elf_i386 |
162 | targ_extra_emuls=i386nbsd | |
163 | ;; | |
436e8db0 NC |
164 | i[3456]86-*-netbsdpe*) targ_emul=i386pe |
165 | targ_extra_ofiles="deffilep.o pe-dll.o" | |
166 | ;; | |
9ffecff1 MG |
167 | i[3456]86-*-netbsd*) targ_emul=i386nbsd |
168 | targ_extra_emuls=elf_i386 | |
169 | ;; | |
8a8b2d4b AJ |
170 | x86_64-*-netbsd*) targ_emul=elf_x86_64 |
171 | targ_extra_emuls="elf_i386 i386nbsd" | |
172 | tdir_elf_i386=`echo ${targ_alias} | \ | |
173 | sed -e 's/x86_64/i386/'` | |
174 | case "${tdir_elf_i386}" in | |
175 | *-netbsdelf*) ;; | |
176 | *) | |
177 | tdir_elf_i386=`echo ${tdir_elf_i386} | \ | |
178 | sed -e 's/netbsd/netbsdelf/'` | |
179 | ;; | |
180 | esac | |
181 | ;; | |
252b5132 RH |
182 | i[3456]86-*-netware) targ_emul=i386nw ;; |
183 | i[3456]86-*-elf*) targ_emul=elf_i386 ;; | |
2641b0c9 ILT |
184 | i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12]) |
185 | targ_emul=i386bsd ;; | |
ac3e50bf DB |
186 | i[3456]86-*-freebsd*) targ_emul=elf_i386_fbsd |
187 | targ_extra_emuls="elf_i386 i386bsd" ;; | |
188 | x86_64-*-freebsd*) targ_emul=elf_x86_64_fbsd | |
189 | targ_extra_emuls="elf_i386_fbsd elf_x86_64 elf_i386" | |
190 | tdir_elf_i386=`echo ${targ_alias} \ | |
191 | | sed -e 's/x86_64/i386/'` | |
fb33b906 | 192 | ;; |
252b5132 RH |
193 | i[3456]86-*-sysv*) targ_emul=i386coff ;; |
194 | i[3456]86-*-ptx*) targ_emul=i386coff ;; | |
195 | i[3456]86-*-mach*) targ_emul=i386mach ;; | |
196 | i[3456]86-*-gnu*) targ_emul=elf_i386 ;; | |
197 | i[3456]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;; | |
198 | i[3456]86-*-moss*) targ_emul=i386moss; targ_extra_emuls=i386msdos ;; | |
199 | i[3456]86-*-winnt*) targ_emul=i386pe ; | |
200 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
201 | i[3456]86-*-pe) targ_emul=i386pe ; | |
202 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
203 | i[3456]86-*-cygwin*) targ_emul=i386pe ; | |
204 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
205 | i[3456]86-*-mingw32*) targ_emul=i386pe ; | |
206 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
a7e78dae ILT |
207 | i[3456]86-*-interix*) targ_emul=i386pe_posix; |
208 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
252b5132 RH |
209 | i[3456]86-*-beospe*) targ_emul=i386beos ;; |
210 | i[3456]86-*-beos*) targ_emul=elf_i386_be ;; | |
41d390a7 | 211 | i[3456]86-*-vxworks*) targ_emul=i386aout ;; |
59ff2774 | 212 | i[3456]86-*-chaos) targ_emul=elf_i386_chaos ;; |
252b5132 RH |
213 | m8*-*-*) targ_emul=m88kbcs ;; |
214 | a29k-*-udi) targ_emul=sa29200 ;; | |
215 | a29k-*-ebmon) targ_emul=ebmon29k ;; | |
216 | a29k-*-*) targ_emul=a29k ;; | |
217 | # arm-*-riscix*) targ_emul=riscix ;; | |
218 | arm-*-aout | armel-*-aout) targ_emul=armaoutl ;; | |
219 | armeb-*-aout) targ_emul=armaoutb ;; | |
220 | arm-*-coff) targ_emul=armcoff ;; | |
87748b32 | 221 | arm-*-vxworks) targ_emul=armcoff ;; |
ac3e50bf DB |
222 | arm-*-freebsd*) targ_emul=armelf_fbsd |
223 | targ_extra_emuls="armelf" ;; | |
658f2588 JT |
224 | armeb-*-netbsdelf*) targ_emul=armelfb_nbsd; |
225 | targ_extra_emuls="armelf_nbsd armelf armnbsd" ;; | |
3695c299 | 226 | arm-*-netbsdelf*) targ_emul=armelf_nbsd; |
658f2588 | 227 | targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;; |
3695c299 | 228 | arm-*-netbsd*) targ_emul=armnbsd; |
658f2588 | 229 | targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd" ;; |
056a1d49 | 230 | arm-*-openbsd*) targ_emul=armnbsd ;; |
24f6971a | 231 | arm-*-rtems*) targ_emul=armelf ;; |
252b5132 | 232 | arm-*-elf) targ_emul=armelf ;; |
45cf6f3e | 233 | arm9e-*-elf) targ_emul=armelf ;; |
5fa803d3 | 234 | arm-*-oabi) targ_emul=armelf_oabi ;; |
69f03d65 | 235 | arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; |
5fa803d3 | 236 | arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; |
0decc840 | 237 | arm*-*-conix*) targ_emul=armelf ;; |
5fa803d3 | 238 | thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; |
252b5132 RH |
239 | strongarm-*-coff) targ_emul=armcoff ;; |
240 | strongarm-*-elf) targ_emul=armelf ;; | |
241 | thumb-*-coff) targ_emul=armcoff ;; | |
242 | thumb-*-elf) targ_emul=armelf ;; | |
243 | thumb-*-oabi) targ_emul=armelf_oabi ;; | |
244 | thumb-epoc-pe) targ_emul=arm_epoc_pe ; | |
245 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
246 | thumb-*-pe) targ_emul=armpe ; | |
247 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
077b8428 NC |
248 | xscale-*-coff) targ_emul=armcoff ;; |
249 | xscale-*-elf) targ_emul=armelf ;; | |
24f6971a | 250 | h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*) |
252b5132 RH |
251 | targ_emul=h8300; targ_extra_emuls="h8300h h8300s" |
252 | ;; | |
8af6dd41 JR |
253 | h8300-*-elf*) |
254 | targ_emul=h8300elf; | |
255 | targ_extra_emuls="h8300helf h8300self" | |
256 | ;; | |
252b5132 RH |
257 | h8500-*-hms* | h8500-*-coff*) |
258 | targ_emul=h8500 | |
259 | targ_extra_emuls="h8500s h8500b h8500m h8500c" | |
260 | ;; | |
4a428502 | 261 | sh-*-linux*) |
3a9091c4 NC |
262 | targ_emul=shlelf_linux |
263 | targ_extra_emuls=shelf_linux | |
7649aa50 NC |
264 | targ_extra_libpath=shelf_linux |
265 | ;; | |
266 | sh*eb-*-linux*) | |
267 | targ_emul=shelf_linux | |
268 | ;; | |
269 | sh*-*-linux*) | |
270 | targ_emul=shlelf_linux | |
4a428502 | 271 | ;; |
8d05742f JT |
272 | sh*le-*-netbsdelf*) |
273 | targ_emul=shlelf_nbsd | |
274 | targ_extra_emuls=shelf_nbsd | |
275 | ;; | |
276 | sh*-*-netbsdelf*) | |
277 | targ_emul=shelf_nbsd | |
278 | targ_extra_emuls=shlelf_nbsd | |
279 | ;; | |
de24ad21 RH |
280 | sh-*-elf* | sh-*-rtemself*) |
281 | targ_emul=shelf | |
252b5132 RH |
282 | targ_extra_emuls="shlelf sh shl" |
283 | ;; | |
344a211f NC |
284 | sh-*-pe) targ_emul=shpe ; |
285 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
252b5132 | 286 | sh-*-*|sh-*-rtems*) targ_emul=sh; targ_extra_emuls=shl ;; |
2d92cb7d AO |
287 | sh64-*-elf*) |
288 | targ_emul=shelf | |
289 | targ_extra_emuls="shlelf shelf32 shlelf32 shelf64 shlelf64" | |
290 | targ_extra_libpath=$targ_extra_emuls | |
291 | ;; | |
252b5132 RH |
292 | m68k-sony-*) targ_emul=news ;; |
293 | m68k-hp-bsd*) targ_emul=hp300bsd ;; | |
294 | m68*-motorola-sysv*) targ_emul=delta68 ;; | |
295 | m68*-*-aout) targ_emul=m68kaout ;; | |
296 | m68*-*-coff) targ_emul=m68kcoff ;; | |
297 | m68*-*-elf) targ_emul=m68kelf ;; | |
298 | m68*-*-hpux*) targ_emul=hp3hpux ;; | |
299 | m68k-*-linux*aout*) targ_emul=m68klinux | |
300 | targ_extra_emuls=m68kelf | |
301 | tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'` | |
302 | ;; | |
303 | m68k-*-linux-gnu*) targ_emul=m68kelf | |
304 | targ_extra_emuls=m68klinux | |
305 | tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'` | |
306 | ;; | |
307 | m68*-*-gnu*) targ_emul=m68kelf ;; | |
308 | m68*-*-lynxos*) targ_emul=m68klynx ;; | |
0b69cd08 MG |
309 | m68*-*-netbsd*4k*) targ_emul=m68k4knbsd |
310 | targ_extra_emuls="m68knbsd m68kelfnbsd" ;; | |
311 | m68*-*-netbsdelf*) targ_emul=m68kelfnbsd | |
312 | targ_extra_emuls="m68knbsd m68k4knbsd" ;; | |
313 | m68*-*-netbsdaout* | m68*-*-netbsd*) | |
314 | targ_emul=m68knbsd | |
315 | targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;; | |
252b5132 | 316 | m68*-*-psos*) targ_emul=m68kpsos ;; |
d43ded80 PB |
317 | m68*-*-rtemscoff*) targ_emul=m68kcoff ;; |
318 | m68*-*-rtems*) targ_emul=m68kelf ;; | |
9f22353f | 319 | hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;; |
0b76fe77 | 320 | hppa*64*-*) targ_emul=elf64hppa ;; |
4900fc06 | 321 | hppa*-*-linux-gnu*) targ_emul=hppalinux ;; |
252b5132 RH |
322 | hppa*-*-*elf*) targ_emul=hppaelf ;; |
323 | hppa*-*-lites*) targ_emul=hppaelf ;; | |
006336b8 | 324 | hppa*-*-netbsd*) targ_emul=hppanbsd ;; |
252b5132 RH |
325 | hppa*-*-rtems*) targ_emul=hppaelf ;; |
326 | vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;; | |
344a211f NC |
327 | mips*-*-pe) targ_emul=mipspe ; |
328 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
252b5132 RH |
329 | mips*-dec-ultrix*) targ_emul=mipslit ;; |
330 | mips*-dec-osf*) targ_emul=mipslit ;; | |
dc831978 MM |
331 | mips*-sgi-irix5*) targ_emul=elf32bsmip ;; |
332 | mips*-sgi-irix6*) targ_emul=elf32bmipn32 | |
22c675a7 | 333 | targ_extra_emuls="elf32bsmip elf64bmip" |
dc831978 | 334 | ;; |
252b5132 RH |
335 | mips*-sgi-irix*) targ_emul=mipsbig ;; |
336 | mips*el-*-ecoff*) targ_emul=mipsidtl ;; | |
337 | mips*-*-ecoff*) targ_emul=mipsidt ;; | |
338 | mips*-dec-bsd*) targ_emul=mipsbsd ;; | |
cf86e6df | 339 | mips*el-*-netbsd*) targ_emul=elf32lmip |
9fb9af6e CD |
340 | targ_extra_emuls="elf32bmip" |
341 | ;; | |
342 | mips*-*-netbsd*) targ_emul=elf32bmip | |
343 | targ_extra_emuls="elf32lmip" | |
344 | ;; | |
252b5132 RH |
345 | mips*-*-bsd*) targ_emul=mipsbig ;; |
346 | mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;; | |
347 | mips*vr4300-*-elf*) targ_emul=elf32b4300 ;; | |
348 | mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;; | |
349 | mips*vr4100-*-elf*) targ_emul=elf32b4300 ;; | |
350 | mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;; | |
351 | mips*vr5000-*-elf*) targ_emul=elf32b4300 ;; | |
352 | mips*el-*-elf*) targ_emul=elf32elmip ;; | |
353 | mips*-*-elf*) targ_emul=elf32ebmip ;; | |
de24ad21 | 354 | mips*el-*-rtems*) targ_emul=elf32elmip ;; |
252b5132 | 355 | mips*-*-rtems*) targ_emul=elf32ebmip ;; |
41d390a7 | 356 | mips*el-*-vxworks*) targ_emul=elf32elmip ;; |
252b5132 | 357 | mips*-*-vxworks*) targ_emul=elf32ebmip ;; |
fdec3cfc L |
358 | mips*el-*-linux-gnu*) targ_emul=elf32ltsmip |
359 | targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip" | |
252b5132 | 360 | ;; |
fdec3cfc L |
361 | mips*-*-linux-gnu*) targ_emul=elf32btsmip |
362 | targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip" | |
252b5132 RH |
363 | ;; |
364 | mips*-*-lnews*) targ_emul=mipslnews ;; | |
3548145d | 365 | mips*-*-sysv4*) targ_emul=elf32btsmip ;; |
3c3bdf30 NC |
366 | mmix-*-*) targ_emul=mmo |
367 | targ_extra_emuls=elf64mmix | |
368 | ;; | |
252b5132 RH |
369 | mn10200-*-*) targ_emul=mn10200 ;; |
370 | mn10300-*-*) targ_emul=mn10300 ;; | |
ac3e50bf DB |
371 | alpha*-*-freebsd*) targ_emul=elf64alpha_fbsd |
372 | targ_extra_emuls="elf64alpha alpha" | |
fb33b906 DB |
373 | tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'` |
374 | ;; | |
252b5132 RH |
375 | alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha |
376 | tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'` | |
377 | ;; | |
378 | alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha | |
379 | tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'` | |
380 | ;; | |
381 | alpha*-*-osf*) targ_emul=alpha ;; | |
382 | alpha*-*-gnu*) targ_emul=elf64alpha ;; | |
383 | alpha*-*-netware*) targ_emul=alpha ;; | |
fc18a3f3 | 384 | alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd ;; |
252b5132 RH |
385 | z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;; |
386 | ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;; | |
aa501e5c | 387 | ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;; |
c7e40348 | 388 | openrisc-*-*) targ_emul=elf32openrisc ;; |
3b16e843 NC |
389 | or32-*-coff) targ_emul=or32 ;; |
390 | or32-*-elf) targ_emul=or32elf ;; | |
5e37cc46 | 391 | or32-*-rtems) targ_emul=or32 ;; |
5c67d4bb AM |
392 | pdp11-*-*) targ_emul=pdp11 ;; |
393 | pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;; | |
394 | pj*-*-*) targ_emul=pjelf ;; | |
ac3e50bf DB |
395 | powerpc-*-freebsd*) targ_emul=elf32ppc_fbsd; |
396 | targ_extra_emuls="elf32ppc elf32ppcsim"; | |
fb33b906 DB |
397 | targ_extra_libpath=elf32ppc; |
398 | tdir_elf32ppcsim=`echo ${targ_alias} | sed -e 's/ppc/ppcsim/'` | |
399 | ;; | |
5c67d4bb AM |
400 | powerpc*-*-linux*) |
401 | case "${targ}" in | |
402 | *64*) targ_emul=elf64ppc | |
eb3d6bb8 AM |
403 | targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim" |
404 | targ_extra_libpath=elf32ppclinux | |
405 | tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'` | |
406 | tdir_elf32ppclinux=$tdir_elf32ppc | |
407 | tdir_elf32ppcsim=$tdir_elf32ppc ;; | |
5c67d4bb AM |
408 | *) targ_emul=elf32ppclinux |
409 | targ_extra_emuls="elf32ppc elf32ppcsim" | |
410 | targ_extra_libpath=elf32ppc ;; | |
411 | esac ;; | |
412 | powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \ | |
413 | | powerpc*le-*-sysv* | powerpc*le-*-vxworks*) | |
414 | case "${targ}" in | |
415 | *64*) targ_emul=elf64lppc | |
eb3d6bb8 AM |
416 | targ_extra_emuls="elf32lppc elf32lppcsim" |
417 | tdir_elf32lppc=`echo "${targ_alias}" | sed -e 's/64//'` | |
418 | tdir_elf32lppcsim=$tdir_elf32lppc ;; | |
5c67d4bb AM |
419 | *) targ_emul=elf32lppc |
420 | targ_extra_emuls="elf32ppcsim" ;; | |
421 | esac ;; | |
422 | powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \ | |
423 | | powerpc*-*-netbsd* | powerpc*-*-vxworks*) | |
424 | case "${targ}" in | |
425 | *64*) targ_emul=elf64ppc | |
eb3d6bb8 AM |
426 | targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" |
427 | tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'` | |
428 | tdir_elf32ppclinux=$tdir_elf32ppc | |
429 | tdir_elf32ppcsim=$tdir_elf32ppc ;; | |
5c67d4bb AM |
430 | *) targ_emul=elf32ppc |
431 | targ_extra_emuls="elf32ppclinux elf32ppcsim" ;; | |
432 | esac ;; | |
de24ad21 | 433 | powerpcle-*-rtems*) targ_emul=elf32leppc ;; |
252b5132 RH |
434 | powerpc-*-rtems*) targ_emul=elf32ppc ;; |
435 | powerpc-*-macos*) targ_emul=ppcmacos ;; | |
436 | powerpc-*-netware*) targ_emul=ppcnw ;; | |
437 | powerpcle-*-pe) targ_emul=ppcpe ;; | |
438 | powerpcle-*-winnt*) targ_emul=ppcpe ;; | |
3b1b01cf | 439 | powerpcle-*-cygwin*) targ_emul=ppcpe ;; |
eb1e0e80 | 440 | powerpc-*-aix5*) targ_emul=aix5ppc ;; |
742aeb63 | 441 | powerpc-*-aix*) targ_emul=aixppc ;; |
252b5132 | 442 | powerpc-*-beos*) targ_emul=aixppc ;; |
94349e12 | 443 | powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;; |
eb1e0e80 | 444 | rs6000-*-aix5*) targ_emul=aix5rs6 ;; |
252b5132 RH |
445 | rs6000-*-aix*) targ_emul=aixrs6 ;; |
446 | tic30-*-*aout*) targ_emul=tic30aout ;; | |
447 | tic30-*-*coff*) targ_emul=tic30coff ;; | |
74459f0e | 448 | tic54x-*-* | c54x*-*-*) targ_emul=tic54xcoff ;; |
252b5132 RH |
449 | tic80-*-*) targ_emul=tic80coff ;; |
450 | v850-*-*) targ_emul=v850 ;; | |
451 | v850e-*-*) targ_emul=v850 ;; | |
452 | v850ea-*-*) targ_emul=v850 ;; | |
453 | w65-*-*) targ_emul=w65 ;; | |
93fbbb04 | 454 | xstormy16-*-*) targ_emul=elf32xstormy16 ;; |
252b5132 | 455 | fr30-*-*) targ_emul=elf32fr30 ;; |
71acc4e8 NC |
456 | mcore-*-pe) targ_emul=mcorepe ; |
457 | targ_extra_ofiles="deffilep.o pe-dll.o" ;; | |
458 | mcore-*-elf) targ_emul=elf32mcore ;; | |
a85d7ed0 NC |
459 | s390x-*-linux*) targ_emul=elf64_s390 ;; |
460 | s390-*-linux*) targ_emul=elf_s390 ;; | |
252b5132 RH |
461 | *-*-ieee*) targ_emul=vanilla ;; |
462 | ||
463 | *) | |
464 | echo 2>&1 "*** ld does not support target ${targ}" | |
465 | echo 2>&1 "*** see ld/configure.tgt for supported targets" | |
466 | exit 1 | |
467 | ||
468 | esac |