mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
7929041ebe
fully registered. (This is the second try, the first import ignored .info files but not .info-* files, for some reason. I'm going to make this consistent.) Reviewed by: core Approved for: 2.2
492 lines
12 KiB
Plaintext
492 lines
12 KiB
Plaintext
# config.bfd
|
|
# Convert a canonical host type into a BFD host type.
|
|
# Set shell variable targ to canonical target name, and run
|
|
# using ``. config.bfd''.
|
|
# Sets the following shell variables:
|
|
# targ_defvec Default vector for this target
|
|
# targ_selvecs Vectors to build for this target
|
|
# targ_archs Architectures for this target
|
|
# targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
|
|
# targ_undercore Whether underscores are used: yes or no
|
|
|
|
# The binutils c++filt program wants to know whether underscores are
|
|
# stripped or not. That is why we set targ_underscore. c++filt uses
|
|
# this information to choose a default. This information is
|
|
# duplicated in the symbol_leading_char field of the BFD target
|
|
# vector, but c++filt does not deal with object files and is not
|
|
# linked against libbfd.a. It is not terribly important that c++filt
|
|
# get this right; it is just convenient.
|
|
|
|
targ_defvec=
|
|
targ_selvecs=
|
|
targ_cflags=
|
|
targ_underscore=no
|
|
|
|
targ_cpu=`echo $targ | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
|
|
case "${targ_cpu}" in
|
|
arm*) targ_archs=bfd_arm_arch ;;
|
|
hppa*) targ_archs=bfd_hppa_arch ;;
|
|
i[345]86) targ_archs=bfd_i386_arch ;;
|
|
m68*) targ_archs=bfd_m68k_arch ;;
|
|
m88*) targ_archs=bfd_m88k_arch ;;
|
|
mips*) targ_archs=bfd_mips_arch ;;
|
|
powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
|
|
rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
|
|
sparc*) targ_archs=bfd_sparc_arch ;;
|
|
z8k*) targ_archs=bfd_z8k_arch ;;
|
|
*) targ_archs=bfd_${targ_cpu}_arch ;;
|
|
esac
|
|
|
|
# WHEN ADDING ENTRIES TO THIS MATRIX:
|
|
# Make sure that the left side always has two dashes. Otherwise you
|
|
# can get spurious matches. Even for unambiguous cases, do this as a
|
|
# convention, else the table becomes a real mess to understand and maintain.
|
|
|
|
case "${targ}" in
|
|
alpha-*-netware*)
|
|
targ_defvec=ecoffalpha_little_vec
|
|
targ_selvecs=nlm32_alpha_vec
|
|
;;
|
|
alpha-*-*)
|
|
targ_defvec=ecoffalpha_little_vec
|
|
;;
|
|
|
|
|
|
arm-*-riscix*)
|
|
targ_defvec=riscix_vec
|
|
;;
|
|
arm-*-pe*)
|
|
targ_defvec=armpe_little_vec
|
|
targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
arm-*-aout | armel-*-aout)
|
|
targ_defvec=aout_arm_little_vec
|
|
targ_selvecs=aout_arm_big_vec
|
|
;;
|
|
armeb-*-aout)
|
|
targ_defvec=aout_arm_big_vec
|
|
targ_selvecs=aout_arm_little_vec
|
|
;;
|
|
arm-*-coff)
|
|
targ_defvec=armcoff_little_vec
|
|
targ_selvecs=armcoff_big_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
a29k-*-ebmon* | a29k-*-udi* | a29k-*-coff* | a29k-*-sym1* | \
|
|
a29k-*-vxworks* | a29k-*-sysv*)
|
|
targ_defvec=a29kcoff_big_vec
|
|
targ_selvecs=sunos_big_vec
|
|
targ_underscore=yes
|
|
;;
|
|
a29k-*-aout* | a29k-*-bsd* | a29k-*-vsta*)
|
|
targ_defvec=sunos_big_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
h8300*-*-*)
|
|
targ_defvec=h8300coff_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
h8500-*-*)
|
|
targ_defvec=h8500coff_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
sh-*-*)
|
|
targ_defvec=shcoff_vec
|
|
targ_selvecs="shcoff_vec shlcoff_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4*)
|
|
targ_defvec=bfd_elf32_hppa_vec
|
|
;;
|
|
hppa*-*-bsd*)
|
|
targ_defvec=som_vec
|
|
targ_selvecs=bfd_elf32_hppa_vec
|
|
;;
|
|
hppa*-*-hpux* | hppa*-*-hiux*)
|
|
targ_defvec=som_vec
|
|
;;
|
|
hppa*-*-osf*)
|
|
targ_defvec=som_vec
|
|
targ_selvecs=bfd_elf32_hppa_vec
|
|
;;
|
|
|
|
i[345]86-*-sysv4* | i[345]86-*-unixware | i[345]86-*-solaris2* | \
|
|
i[345]86-*-elf | i[345]86-*-sco*elf*)
|
|
targ_defvec=bfd_elf32_i386_vec
|
|
targ_selvecs=i386coff_vec
|
|
;;
|
|
i[345]86-*-sysv* | i[345]86-*-isc* | i[345]86-*-sco* | i[345]86-*-coff | \
|
|
i[345]86-*-aix* | i[345]86-*-go32*)
|
|
targ_defvec=i386coff_vec
|
|
;;
|
|
i[345]86-sequent-bsd*)
|
|
targ_defvec=i386dynix_vec
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-bsd*)
|
|
targ_defvec=i386bsd_vec
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-freebsd*)
|
|
targ_defvec=i386freebsd_vec
|
|
targ_selvecs=i386bsd_vec
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-netbsd*)
|
|
targ_defvec=i386netbsd_vec
|
|
targ_selvecs=i386bsd_vec
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-netware*)
|
|
targ_defvec=bfd_elf32_i386_vec
|
|
targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
|
|
;;
|
|
i[345]86-*-linuxaout*)
|
|
targ_defvec=i386linux_vec
|
|
targ_selvecs=bfd_elf32_i386_vec
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-linux*)
|
|
targ_defvec=bfd_elf32_i386_vec
|
|
targ_selvecs=i386linux_vec
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-lynxos*)
|
|
targ_defvec=i386lynx_coff_vec
|
|
targ_selvecs=i386lynx_aout_vec
|
|
;;
|
|
i[345]86-*-gnu*)
|
|
targ_defvec=bfd_elf32_i386_vec
|
|
targ_selvecs=i386mach3_vec
|
|
targ_cflags=-DSTAT_FOR_EXEC
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-mach* | i[345]86-*-osf1mk*)
|
|
targ_defvec=i386mach3_vec
|
|
targ_cflags=-DSTAT_FOR_EXEC
|
|
targ_underscore=yes
|
|
;;
|
|
i[345]86-*-os9k)
|
|
targ_defvec=i386os9k_vec
|
|
;;
|
|
i[345]86-*-msdos*)
|
|
targ_defvec=i386aout_vec
|
|
targ_selvecs=i386msdos_vec
|
|
;;
|
|
i[345]86-*-moss*)
|
|
targ_defvec=bfd_elf32_i386_vec
|
|
targ_selvecs="i386msdos_vec i386aout_vec"
|
|
;;
|
|
i[345]86-*-cygwin32 | i[345]86-*-winnt | i[345]86-*-pe)
|
|
targ_defvec=i386pe_vec
|
|
targ_selvecs="i386pe_vec i386pei_vec"
|
|
;;
|
|
i[345]86-none-*)
|
|
targ_defvec=i386coff_vec
|
|
;;
|
|
i[345]86-*-aout* | i[345]86*-*-vsta*)
|
|
targ_defvec=i386aout_vec
|
|
;;
|
|
|
|
i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
|
|
targ_defvec=i860coff_vec
|
|
;;
|
|
i860-*-sysv4* | i860-*-elf*)
|
|
targ_defvec=bfd_elf32_i860_vec
|
|
;;
|
|
|
|
i960-*-vxworks4* | i960-*-vxworks5.0)
|
|
targ_defvec=b_out_vec_little_host
|
|
targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
|
|
targ_defvec=icoff_little_vec
|
|
targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host"
|
|
targ_underscore=yes
|
|
;;
|
|
i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
|
|
targ_defvec=b_out_vec_little_host
|
|
targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
m68*-apollo-*)
|
|
targ_defvec=apollocoff_vec
|
|
;;
|
|
m68*-bull-sysv*)
|
|
targ_defvec=m68kcoffun_vec
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-hp-bsd*)
|
|
targ_defvec=hp300bsd_vec
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-*-aout*)
|
|
targ_defvec=aout0_big_vec
|
|
# We include this here, rather than making a separate cisco
|
|
# configuration, so that cisco-core.c gets routinely tested at
|
|
# least for compilation.
|
|
targ_selvecs=cisco_core_vec
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-*-elf* | m68*-*-sysv4*)
|
|
targ_defvec=bfd_elf32_m68k_vec
|
|
targ_selvecs=m68kcoff_vec
|
|
;;
|
|
m68*-*-coff* | m68*-*-sysv*)
|
|
targ_defvec=m68kcoff_vec
|
|
targ_selvecs="m68kcoff_vec versados_vec"
|
|
;;
|
|
m68*-*-hpux*)
|
|
targ_defvec=hp300hpux_vec
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-*-linuxaout*)
|
|
targ_defvec=m68klinux_vec
|
|
targ_selvecs=bfd_elf32_m68k_vec
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-*-linux*)
|
|
targ_defvec=bfd_elf32_m68k_vec
|
|
targ_selvecs=m68klinux_vec
|
|
;;
|
|
m68*-*-lynxos*)
|
|
targ_defvec=m68klynx_coff_vec
|
|
targ_selvecs=m68klynx_aout_vec
|
|
;;
|
|
m68*-hp*-netbsd*)
|
|
targ_defvec=m68k4knetbsd_vec
|
|
targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-*-netbsd*)
|
|
targ_defvec=m68knetbsd_vec
|
|
targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
|
|
m68*-*-bsd* | m68*-*-vsta*)
|
|
targ_defvec=sunos_big_vec
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-ericsson-*)
|
|
targ_defvec=sunos_big_vec
|
|
targ_selvecs="m68kcoff_vec tekhex_vec"
|
|
targ_underscore=yes
|
|
;;
|
|
m68*-cbm-*)
|
|
targ_defvec=bfd_elf32_m68k_vec
|
|
targ_selvecs=m68kcoff_vec
|
|
;;
|
|
m68*-apple-aux*)
|
|
targ_defvec=m68kaux_coff_vec
|
|
;;
|
|
m68*-*-psos*)
|
|
targ_defvec=bfd_elf32_m68k_vec
|
|
targ_selvecs=ieee_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
|
|
targ_defvec=bfd_elf32_m88k_vec
|
|
targ_selvecs=m88kbcs_vec
|
|
;;
|
|
m88*-*-mach3*)
|
|
targ_defvec=m88kmach3_vec
|
|
targ_cflags=-DSTAT_FOR_EXEC
|
|
;;
|
|
m88*-*-*)
|
|
targ_defvec=m88kbcs_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
mips*-big-*)
|
|
targ_defvec=ecoff_big_vec
|
|
targ_selvecs=ecoff_little_vec
|
|
;;
|
|
mips-dec-netbsd*)
|
|
targ_defvec=bfd_elf32_littlemips_vec
|
|
targ_selvecs=bfd_elf32_bigmips_vec
|
|
;;
|
|
mips*-dec-bsd*)
|
|
targ_defvec=aout_mips_little_vec
|
|
targ_underscore=yes
|
|
;;
|
|
mips*-dec-mach3*)
|
|
targ_defvec=aout_mips_little_vec
|
|
targ_cflags=-DSTAT_FOR_EXEC
|
|
;;
|
|
mips*-dec-* | mips*el-*-ecoff*)
|
|
targ_defvec=ecoff_little_vec
|
|
targ_selvecs=ecoff_big_vec
|
|
;;
|
|
mips*-*-ecoff*)
|
|
targ_defvec=ecoff_big_vec
|
|
targ_selvecs=ecoff_little_vec
|
|
;;
|
|
mips*-*-irix5*)
|
|
targ_defvec=bfd_elf32_bigmips_vec
|
|
targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
|
|
;;
|
|
mips*-sgi-* | mips*-*-bsd*)
|
|
targ_defvec=ecoff_big_vec
|
|
targ_selvecs=ecoff_little_vec
|
|
;;
|
|
mips*-*-mach3*)
|
|
targ_defvec=aout_mips_little_vec
|
|
targ_cflags=-DSTAT_FOR_EXEC
|
|
;;
|
|
mips*-*-sysv4*)
|
|
targ_defvec=bfd_elf32_bigmips_vec
|
|
targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
|
|
;;
|
|
mips*-*-sysv* | mips*-*-riscos*)
|
|
targ_defvec=ecoff_big_vec
|
|
targ_selvecs=ecoff_little_vec
|
|
;;
|
|
mips*el-*-elf*)
|
|
targ_defvec=bfd_elf32_littlemips_vec
|
|
targ_selvecs=bfd_elf32_bigmips_vec
|
|
;;
|
|
mips*-*-elf*)
|
|
targ_defvec=bfd_elf32_bigmips_vec
|
|
targ_selvecs=bfd_elf32_littlemips_vec
|
|
;;
|
|
|
|
ns32k-pc532-mach* | ns32k-pc532-ux*)
|
|
targ_defvec=pc532machaout_vec
|
|
targ_underscore=yes
|
|
;;
|
|
ns32k-*-netbsd* | ns32k-*-lites*)
|
|
targ_defvec=pc532netbsd_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
powerpc-*-aix*)
|
|
targ_defvec=rs6000coff_vec
|
|
;;
|
|
powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | powerpc-*-solaris2*)
|
|
targ_defvec=bfd_elf32_powerpc_vec
|
|
targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
|
|
;;
|
|
powerpc-*-macos* | powerpc-*-mpw*)
|
|
targ_defvec=pmac_xcoff_vec
|
|
;;
|
|
powerpc-*-netware*)
|
|
targ_defvec=bfd_elf32_powerpc_vec
|
|
targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
|
|
;;
|
|
powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
|
|
powerpcle-*-solaris2*)
|
|
targ_defvec=bfd_elf32_powerpcle_vec
|
|
targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
|
|
;;
|
|
|
|
powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin32)
|
|
targ_defvec=bfd_powerpcle_pe_vec
|
|
targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
|
|
;;
|
|
|
|
rs6000-*-*)
|
|
targ_defvec=rs6000coff_vec
|
|
;;
|
|
|
|
sparc-*-lynxos*)
|
|
targ_defvec=sparclynx_coff_vec
|
|
targ_selvecs=sparclynx_aout_vec
|
|
;;
|
|
sparc-*-netbsd*)
|
|
targ_defvec=sparcnetbsd_vec
|
|
targ_underscore=yes
|
|
;;
|
|
sparc-*-elf* | sparc-*-sysv4* | sparc-*-solaris2*)
|
|
targ_defvec=bfd_elf32_sparc_vec
|
|
targ_selvecs=sunos_big_vec
|
|
;;
|
|
sparc64-*-aout*)
|
|
targ_defvec=sunos_big_vec
|
|
targ_underscore=yes
|
|
;;
|
|
sparc64-*-elf*)
|
|
targ_defvec=bfd_elf64_sparc_vec
|
|
targ_selvecs=bfd_elf32_sparc_vec
|
|
;;
|
|
sparc64-*-solaris2* | sparc64-*-sysv4*)
|
|
targ_defvec=bfd_elf32_sparc_vec
|
|
# Adding 64 bit support by default causes things like objdump to
|
|
# print addresses as 64 bits.
|
|
#targ_selvecs=bfd_elf64_sparc_vec
|
|
;;
|
|
sparc-*-netware*)
|
|
targ_defvec=bfd_elf32_sparc_vec
|
|
targ_selvecs="nlm32_sparc_vec sunos_big_vec"
|
|
;;
|
|
sparc*-*-coff*)
|
|
targ_defvec=sparccoff_vec
|
|
;;
|
|
sparc*-*-*)
|
|
targ_defvec=sunos_big_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
tahoe-*-*)
|
|
targ_defvec=host_aout_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
vax-*-vms*)
|
|
echo 1>&2 "*** BFD does not support target ${targ}."
|
|
echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
|
|
exit 1
|
|
;;
|
|
vax-*-*)
|
|
targ_defvec=host_aout_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
we32k-*-*)
|
|
targ_defvec=we32kcoff_vec
|
|
;;
|
|
|
|
w65-*-*)
|
|
targ_defvec=w65_vec
|
|
;;
|
|
|
|
z8k*-*-*)
|
|
targ_defvec=z8kcoff_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
*-*-ieee*)
|
|
targ_defvec=ieee_vec
|
|
;;
|
|
|
|
*-adobe-*)
|
|
targ_defvec=a_aout_adobe_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
*-sony-*)
|
|
targ_defvec=newsos3_vec
|
|
targ_underscore=yes
|
|
;;
|
|
|
|
*-tandem-*)
|
|
targ_defvec=m68kcoff_vec
|
|
targ_selvecs=ieee_vec
|
|
;;
|
|
|
|
*)
|
|
echo 1>&2 "*** BFD does not support target ${targ}."
|
|
echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
|
|
exit 1
|
|
;;
|
|
esac
|