4 # Convert a canonical host type into a BFD host type.
5 # Call with canonical name as the argument.
9 cpu
=`echo $canon | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
11 # WHEN ADDING ENTRIES TO THIS MATRIX:
12 # Make sure that the left side always has two dashes. Otherwise you
13 # can get spurious matches. Even for unambiguous cases, do this as a
14 # convention, else the table becomes a real mess to understand and maintain.
17 alpha-
*-*) bfd_name
=alphaosf
;;
18 a29k-
*-ebmon) bfd_name
=a29k-coff
;;
19 a29k-
*-udi) bfd_name
=a29k-coff
;;
20 a29k-
*-aout) bfd_name
=a29k-aout
;;
21 a29k-
*-coff) bfd_name
=a29k-coff
;;
22 a29k-
*-sym1) bfd_name
=a29k-coff
;;
23 h8300
*-*-*) bfd_name
=h8300-coff
;;
24 h8500-
*-*) bfd_name
=h8500-coff
;;
25 sh-
*-*) bfd_name
=sh-coff
;;
26 hppa
*-*-bsd*) bfd_name
=hppabsd
;;
27 hppa
*-*-hpux*) bfd_name
=hppahpux
;;
28 hppa
*-*-osf) bfd_name
=hppa-elf
;;
29 i
[34]86-*-sysv4*) bfd_name
=i386-elf
;;
30 i
[34]86-*-solaris2*) bfd_name
=i386-elf
;;
31 i
[34]86-*-sysv*) bfd_name
=i386-coff
;;
32 i
[34]86-*-isc*) bfd_name
=i386-coff
;;
33 i
[34]86-*-sco*) bfd_name
=i386-coff
;;
34 i
[34]86-*-bsd*) bfd_name
=i386-bsd
;;
35 i
[34]86-*-coff) bfd_name
=i386-coff
;;
36 i
[34]86-*-aix*) bfd_name
=i386-coff
;;
37 i
[34]86-*-elf) bfd_name
=i386-elf
;;
38 i
[34]86-*-netbsd*) bfd_name
=i386-netbsd
;;
39 i
[34]86-*-netware*) bfd_name
=i386-nlm
;;
40 i
[34]86-*-linux*) bfd_name
=i386-linux
;;
41 i
[34]86-*-lynx*) bfd_name
=i386-lynx
;;
42 i
[34]86-*-mach*) bfd_name
=i386-mach3
;;
43 i
[34]86-*-osf1mk*) bfd_name
=i386-mach3
;;
44 i
[34]86-none-*) bfd_name
=i386-coff
;;
45 i960-
*-vxworks) bfd_name
=i960-bout
;;
46 i960-
*-aout) bfd_name
=i960-bout
;;
47 i960-
*-bout) bfd_name
=i960-bout
;;
48 m68
*-bull-sysv*) bfd_name
=u68k-coff
;;
49 m68
*-hp-bsd*) bfd_name
=hp300bsd
;;
50 m68
*-*-aout) bfd_name
=m68k-aout
;;
51 m68
*-*-coff) bfd_name
=m68k-coff
;;
52 m68
*-*-hpux*) bfd_name
=hp300hpux
;;
53 m68
*-*-os68k) bfd_name
=m68k-aout
;;
54 m68
*-*-sunos*) bfd_name
=m68k-aout
;;
55 m68
*-*-sysv*) bfd_name
=m68k-coff
;;
56 m68
*-*-vxworks*) bfd_name
=m68k-aout
;;
57 m68
*-ericsson-*) bfd_name
=m68k-aout
;;
58 m68
*-netx-*) bfd_name
=m68k-aout
;;
59 m88
*-*-sysv4*) bfd_name
=m88k-elf
;;
60 m88k-
*-*) bfd_name
=m88k-coff
;;
61 m88110-
*-*) bfd_name
=m88k-coff
;;
62 mips-big-
*) bfd_name
=bigmips
;;
63 mips-dec-bsd
*) bfd_name
=mipsdecbsd
;;
64 mips-dec-
*) bfd_name
=decstation
;;
65 mips-
*-ecoffl*) bfd_name
=decstation
;;
66 mips-
*-ecoff*) bfd_name
=bigmips
;;
67 mips-sgi-
*) bfd_name
=bigmips
;;
68 mips-
*-sysv*) bfd_name
=riscos
;;
69 mips-
*-riscos*) bfd_name
=riscos
;;
70 mips-
*-bsd*) bfd_name
=noop
;;
71 mips-
*-elfl*) bfd_name
=mipslelf
;;
72 mips-
*-elf*) bfd_name
=mipsbelf
;;
73 # Apparently this is similar enough to 386 mach to use the same target.
74 ns32
*-*-mach*) bfd_name
=i386-mach3
;;
75 rs6000-
*-*) bfd_name
=rs6000
;;
76 sparc-
*-solaris2*) bfd_name
=sparc-elf
;;
77 sparc-
*-sysv4*) bfd_name
=sparc-elf
;;
79 # Don't set target64=true for sparc64-*-aout*. Keep it using the 32bit stuff
80 # so we continue to have something that works (until the 64 bit support is
82 sparc64-
*-aout*) bfd_name
=sparc-aout
;;
83 sparc64-
*-elf*) bfd_name
=sparc64-elf
; target64
=true
;;
85 sparc
*-*-*) bfd_name
=sparc-aout
;;
86 tahoe-
*-*) bfd_name
=tahoe
;;
87 vax-
*-vms) bfd_name
=vax-vms
;;
88 vax-
*-*) bfd_name
=vax
;;
89 we32k-
*-*) bfd_name
=we32k
;;
90 z8k
*-*-*) bfd_name
=z8k-coff
;;
92 *-*-aout) bfd_name
=${cpu}-aout ;;
93 *-*-bsd*) bfd_name
=${cpu}-aout ;;
94 *-*-netware*) bfd_name
=${cpu}-nlm ;;
95 *-*-sysv4*) bfd_name
=${cpu}-elf ;;
96 *-*-solaris2*) bfd_name
=${cpu}-elf ;;
97 *-*-go32) bfd_name
=${cpu}-aout ;;
98 *-*-sysv*) bfd_name
=${cpu}-coff ;;
100 *-*-aout64) bfd_name
=${cpu}-aout64 ; target64
=true
;;
101 *-*-elf64) bfd_name
=${cpu}-elf64 ; target64
=true
;;
103 *-adobe-*) bfd_name
=adobe
;;
104 *-sony-*) bfd_name
=news
;;
105 *-intel-*) bfd_name
=${cpu}-coff ;;
106 *-stratus-*) bfd_name
=${cpu}-elf ;;
107 *-cbm-*) bfd_name
=${cpu}-elf ;;
108 *-ncr-*) bfd_name
=${cpu}-elf ;;
109 *-tandem-*) bfd_name
=st2000
;;
111 # Allow targets that config.sub doesn't recognize, like "all".
112 *) bfd_name
=$canon ;;
This page took 0.04062 seconds and 4 git commands to generate.