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